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


Installing collected packages: pip

  Found existing installation: pip 19.2.3

    Uninstalling pip-19.2.3:

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

Permission denied: 'RECORD' Consider using the `--user` option or check the permissions.

While updating the pip/pip3 package installer, you may receive the above EnvironmentError with Errno 13, this will cause the update to fail.

Solution:

AS you can see in the console error logs, all you need to do is add --user at the end of the command that you are executing. This will fix the issue.

code2care@mac Desktop % pip3 install --upgrade pip --user

Collecting pip
  Using cached https://files.pythonhosted.org/packages/47/ca/f0d790b6e18b3a6f3bd5e80c2ee4edbb5807286c21cdd0862ca933f751dd/pip-21.1.3-py3-none-any.whl
Installing collected packages: pip
Successfully installed pip-21.1.3
PIP: Could not install packages due to an EnvironmentError Errno 13
PIP: Could not install packages due to an EnvironmentError Errno 13


Have Questions? Post them here!
Advertisements
Try Out Code2care Dev Tools:

Advertisements



Android Java Linux Microsoft Google Python macOS Notepad++ Microsoft Teams CSS PHP SharePoint Html Linux C Programs Bootstrap jQuery Sublime Android Studio Facebook Eclipse WhatsApp News MySQL Json HowTos JavaScript FTP S3


Advertisements


Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and Software Developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include Learnings, Tutorials, Trouble-Shooting steps, Video Tutorials, Code Snippets, How Tos, Blogs, Articles, etc.
🎉 We are celebrating the 10th years of Code2care! Thank you for all your support! We hope we made a difference.
We strong support Gender Equality & Diversity.

We stand in solidarity with Ukraine - Make a donation to UNHCR - https://donate.unhcr.org/in/en-in/ukraine-emergency