+2 votes
in Programming Languages by (75.1k points)

When I try to install any Python package using 'pip install', I get the following error:

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

I do not have sudo privileges. How can I install a package?

1 Answer

+1 vote
by (353k points)
selected by
 
Best answer

Since you do not have sudo priviledges, install the package for your userid only. Type the following command to install the desired package:

Python 2

pip install --user packageName

Python 3

pip3 install --user packageName

Related questions


...