How can I install a specific version of pip via easy-install? - Mac OS Mavericks

前端 未结 3 1701
情深已故
情深已故 2020-12-21 14:42

I am constantly getting the

Cannot fetch index base URL https://pypi.python.org/simple/

whenever I try to pip install anything with the mos

相关标签:
3条回答
  • 2020-12-21 15:19

    You should be able to install pip with pip:

    pip install --upgrade pip==1.2.1
    
    0 讨论(0)
  • 2020-12-21 15:19

    Based on your context, you can uninstall as above and then run:

    sudo easy_install pip==1.2.1
    

    No more pesky SSL errors.

    0 讨论(0)
  • 2020-12-21 15:27

    Uninstall any previous installation of pip. Considering you are using system wide installation,

    sudo apt-get remove python-pip
    

    and also,

    pip uninstall pip
    

    Now,

    sudo apt-get install python-setuptools
    sudo easy_install pip==<specific version>
    sudo pip install virtualenv
    

    It's preferred to use virtual environment though.

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