系统版本 macos 10.14.6 mojava
Installation - pip documentation v21.3.1https://pip.pypa.io/en/stable/installation/
https://github.com/pypa/get-pip#usagehttps://github.com/pypa/get-pip#usage1.
$ python -m ensurepip --upgrade
2.
$ python get-pip.py
错误反馈
~ song$ python get-pip.py
/usr/local/bin/python3: can't open file '/Users/song/get-pip.py': [Errno 2] No such file or directory
解决方法
$ curl -sSL https://bootstrap.pypa.io/get-pip.py -o get-pip.py
3.
$ python get-pip.py
Successfully installed pip-21.3.1 wheel-0.37.0
4.
~ song$ pip --version
pip 21.3.1 from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pip (python 3.10)