[英]How can I install a specific version of pip via easy-install? - Mac OS Mavericks
I am constantly getting the 我不断得到
Cannot fetch index base URL https://pypi.python.org/simple/
whenever I try to pip install anything with the most recent pip version. 每当我尝试点子安装最新点子版本的任何东西时。
I read on some other questions that pip was having SSL related issues in its latest version and recommended to install pip 1.2.1. 我读了一些其他问题,即pip在最新版本中存在与SSL相关的问题,建议安装pip 1.2.1。
How do I install a specific version of pip via easy_install for example? 例如,如何通过easy_install安装特定版本的pip?
您应该可以使用pip安装pip:
pip install --upgrade pip==1.2.1
Based on your context, you can uninstall as above and then run: 根据您的上下文,您可以按上述方式进行卸载,然后运行:
sudo easy_install pip==1.2.1
No more pesky SSL errors. 不再有讨厌的SSL错误。
Uninstall any previous installation of pip
. 卸载任何先前安装的
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. 不过,最好使用
virtual environment
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.