Solution to Mac installation pip error report

The solution to the failure of installing pip on Mac

question

System environment: macOS BigSur v11.2.2
After entering the following installation command in the terminal

sudo easy_install pip

The error is as follows:
insert image description here

reason

The Mac system comes with Python2, and you need to manually install Python3.

Solution

brew install python3
  • install pip again
sudo easy_install pip
  • Close Terminal, reopen Terminal, enter
pip -V

Confirm that the configuration is successful.

Guess you like

Origin blog.csdn.net/apr15/article/details/120091959