Installing pip on macOS does not work (anymore)

前端 未结 3 1594
死守一世寂寞
死守一世寂寞 2021-02-20 02:52

I followed online instructions on how to install pip on macOS (for example this, this, and this).

I all seems to simple, but it\'s not working for me.

相关标签:
3条回答
  • 2021-02-20 03:02

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

    pip3 install --upgrade pip
    
    0 讨论(0)
  • 2021-02-20 03:07

    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/

    0 讨论(0)
  • 2021-02-20 03:21

    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

    0 讨论(0)
提交回复
热议问题