Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Error installing with pip within virtualenv on raspberry pi: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/lib/python2.7/site-packages' #39

Open
harryjjacobs opened this issue Jun 26, 2018 · 2 comments

Comments

@harryjjacobs
Copy link

When trying to install the latest version of pocketsphinx (or any for that matter) via pip (pip install pocketsphinx) whilst inside a virtualenv I get this error:

Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/lib/python2.7/site-packages'
Consider using the `--user` option or check the permissions.

I've also tried installing it from source without pip and it still seems to be trying to install itself in the global /usr/lib/python2.7/site-packages directory rather than in the venv.
Any ideas?

@HarshaJavalkar
Copy link

I have same problem can any one help

@danialhedaiat
Copy link

this error want to tell you, it has gone change os directory and its need your permission to do that and for that, you need to use these command pip install <package> --user or sudo python(x) -m pip install <package> but for avoiding to do that you must create venv and then if your venv was activated you never get that error if you see that error and you working in venv you might need to activate venv

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants