Installing pip on macOS does not work (anymore)

不羁岁月 提交于 2019-12-04 01:57:56

Use brew for Macs

"brew install python"

this will come with pip and both python2 and python3

instructions to bypass 2 python versions (if you want) are at https://pip.readthedocs.io/en/stable/installing/

otherwise, it'll just be "python3 <'program'>"

Here's how to install brew: https://www.howtogeek.com/211541/homebrew-for-os-x-easily-installs-desktop-apps-and-terminal-utilities/

You might have pip3 instead. Use it to upgrade pip.

pip3 install --upgrade pip

easy_install has been deprecated. Use below commands instead.

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

  2. python get-pip.py

Source

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!