How to fix: ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied

The issue:

ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: ‘/home/bencipherx/feedsomeone/venv/lib/python3.8/site-packages/decouple.py’
Consider using the ` — user` option or check the permissions.

Cause:

Installing the virtual environment as a root user.

Solution:

  1. chown -R user:group /path/to/anaconda/venv/env (fixed)
  2. Consider using the --user` option or check the permissions i.e. pip install [package_name]--user (not recommended because that will defeat the purpose of virtual environments which is to isolate project dependencies)

--

--

--

I am a passionate Python Engineer and DevOps. Besides the technology, I also do charity work with my NGO at www.feedsomeone.org

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

12 Ways to Add an Array of Integers in C# — Part 4: Again and Again and Again

Taking the right route with Flutter.

Create Digital Signature Using RSA in Go

17 Best Python Libraries on GitHub

How to secure GraphQL in DRF without duplicating code

Cloud Migration: Which Cloud Migration Strategy is Right for You?

PVP mode details

Ask the wrong people, you build the wrong thing

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ebenezer

Ebenezer

I am a passionate Python Engineer and DevOps. Besides the technology, I also do charity work with my NGO at www.feedsomeone.org

More from Medium

The Shellshock vulnerability — #20

How to setup SSL/TLS for your domain for Free: Cloudflare and Nginx

Django Rest Framework — How to Edit Reset Password Link in Dj-Rest-Auth with Dj-AllAuth installed

Advantage of web development using Django framework