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

(Comments)

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

Problem statement

In my MacOS BiGSUR terminal I wanted to install a python package with pip. At the end it says:

You are using pip version 10.0.1, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

So I wanted to update pip with the given command but I got an error:

Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: 
'/Library/Python/2.7/site-packages/pip-18.0-py2.7.egg/EGG-INFO/PKG-INFO'
Consider using the `--user` option or check the permissions.

I don't really understand what to do now. Also I realized it says Python 2.7 in the error message but I have and want to use only python 3.

If you want to use python3+ to install the packages you need to use pip3 install package_name

And to solve the errno 13 you have to add --user at the end

pip3 install package_name --user
Current rating: 5

Comments

Riddles

22nd Jul- 2020, by: Editor in Chief
524 Shares 4 Comments
Generic placeholder image
20 Oct- 2019, by: Editor in Chief
524 Shares 4 Comments
Generic placeholder image
20Aug- 2019, by: Editor in Chief
524 Shares 4 Comments
10Aug- 2019, by: Editor in Chief
424 Shares 4 Comments
Generic placeholder image
10Aug- 2015, by: Editor in Chief
424 Shares 4 Comments

More News  »

Zakrzowek, the hidden gems for parents and kids in the south of Krakow

Recent news

View this post on Instagram

A post shared by @52parksinayear

read more
1 month, 1 week ago

Jalan jalan ke peternakan madu di Polandia

Recent news

Generic placeholder image

Thanks for stopping by. All the information here is curated from the most inspirational article on the site.

read more
2 months, 2 weeks ago

Kreativitas dalam pikiran anak anak

Recent news
6 months, 2 weeks ago

Panel data - 2 - simple example of pooled cross section across years

Recent news
6 months, 3 weeks ago

Panel data - 1 - an Intro

Recent news
6 months, 3 weeks ago

Kim Kardashian West has filed for divorce from Kanye West

Recent news

Reported from CNN, Kim Kardashian West has filed for divorce from Kanye West, a court clerk for Los Angeles Superior Court confirmed to CNN on Friday.

read more
8 months, 1 week ago

Formula in finding the area of a circle

Recent news

What is a circle and what the formula to find them? 

read more
9 months ago

Indonesian book for kids

Recent news

Indonesian books for kids

read more
9 months ago

More News »

Generic placeholder image

Collaboratively administrate empowered markets via plug-and-play networks. Dynamically procrastinate B2C users after installed base benefits. Dramatically visualize customer directed convergence without