+3 votes
in Programming Languages by (34.9k points)

I am trying to upgrade pip on my ubuntu machine, but it gives the following error message:

ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/lib/python3.6/site-packages/pip-21.3.1.dist-info'

1 Answer

+2 votes
by (157k points)

From the error message, it is obvious that you do not have permission to update "/usr/local/lib/python3.6/site-packages/pip-21.3.1.dist-info" file. However, you can upgrade pip for your userid by running the following command on the terminal.

python3 -m pip install --upgrade pip --user

Related questions


...