MAC M1 安装pip,解决pip: command not found

pip

pip


cd /Library/Python/2.7

sudo curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py

python get-pip.py


出现以下内容说明安装成功

DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please 
。。。。。。。。。。。
Successfully installed pip-20.3.4

查看pip版本   pip -V

若验证失败,则执行下面命令:

sudo ln -s /Users/。。。/Library/Python/2.7/lib/python/site-packages/pip /usr/local/bin/pip

pip3 -V
pip 19.2.3 from /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/pip (python 3.8)

猜你喜欢

转载自blog.csdn.net/qq_41638825/article/details/121655094