+2 votes
in Programming Languages by (28.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

0 votes
by (48.7k points)

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