Pip install xxxx
didn't work with Python, which is included by default on MacOS, so a solution and a note.
I have installed the requests package as a sample.
1.pip install Error when trying to install a third party package.
XXXX $ pip install requests
bash: pip: command not found
Answer that Python is included but there is no pip command by default.
2.pip3 install It seems that only pip3 works by default on Python 3.7 series and above. So try again with pip3. https://qiita.com/ms-rock/items/72b8f1abc661c539bb09
XXXX $ pip3 install requests
~ Omitted ~
[Errno 13] Permission denied:
It was played with a permission error.
3.sudo pip3 install For the time being, if you just want to install it, you're done. It's a global environment, so you don't have to mess with permissions.
sudo pip3 install requests
It's confusing to write, but you can also upgrade pip itself from the pip3 command.
sudo pip3 install --upgrade pip
Recommended Posts