Run pip install on MacOS Python 3.7 or later

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.

environment

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

Bonus. Upgrade pip with pip3

It's confusing to write, but you can also upgrade pip itself from the pip3 command.

sudo pip3 install --upgrade pip

Recommended Posts

Run pip install on MacOS Python 3.7 or later
Python 3.4 or later standard pip
Install Python on Windows + pip + virtualenv
[Python] Make pip available on macOS
scipy stumbles with pip install on python 2.7.8
Install python on xserver to use pip
Install Python 3.8, Pip 3.8 on EC2 (Amazon Linux 2)
Install python on WSL
Install pip on Mavericks
Install and run Python3.5 + NumPy + SciPy on Windows 10
Install Python on Pidora.
Install Scrapy on python3
Install Python 3.8.6 on macOS Big Sur using pyenv
Install Python on Mac
Install Python 3 on Mac
Install Python3.4 on CentOS 6.6
Install python on windows
Install Python 2.7.3 on CentOS 5.4
Install Python 3.3 on Ubuntu 12.04
Install Python 3 on MacOS Catalina (with Homebrew only)
Install Python 3.4 on Mac
Install pip / pip3 on Ubuntu
Install Python 3.6 on Docker
Install Python and libraries for Python on MacOS Catalina
Install ZIP version Python and pip on Windows 10
Run Openpose on Python (Windows)
Install Python 3.8 on RHEL 8 (AppStream)
Install pygame on python3.4 on mac
Install Python 3.8 on CentOS 7 (SCL)
Made python available on macOS
Run Tensorflow 2.x on Python 3.7
Install pandas 0.14 on python3.4 [on Mac]
Install OpenCV on Ubuntu + python
Run Python CGI on CORESERVER
Run unix command on python
Python --Install MySQLDB on EC2
Install Python 3.8 on CentOS 8 (AppStream)
Ruby's `` like Python. 2.6 or later
[Python] [Chainer] [Windows] Install Chainer on Windows
Run OpenVino on macOS Catalina
Install python3 and scientific calculation library on Ubuntu (virtualenv + pip)
What to do if pip install mysqlclient fails on MacOS
Install Python 2.7.9 and Python 3.4.x with pip.
Install Python3 on Sakura server (FreeBSD)
Install and run dropbox on Ubuntu 20.04
Install Python 3.8 on Ubuntu 20.04 (OS standard)
Install python2.7 on windows 32bit environment
Install xgboost (python version) on Windows
pip install mysql-Error handling during python
Run mruby with Python or Blender
Install Pytorch on Blender 2.90 python on Windows
How to install graph-tool on macOS
Install Python 3.7 Anaconda on MAC, but Python 2
Install python3 on Mac (El Capitan)
Run Python on Schedule on AWS Lambda
Run TensorFlow Docker Image on Python3
Install pip on CentOS7. Also iPython.
Install Python 3.9 on Ubuntu 20.04 (OS standard?)
Install Python development environment on Windows 10
Install Python on CentOS using Pyenv
Install confluent-kafka for Python on Ubuntu