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:
- chown -R user:group /path/to/anaconda/venv/env (fixed)
- 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)