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!





Recent Posts:
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, Video Tutorials, Code Snippets, How Tos, Blogs, Articles, etc.