这是链接到下面的博客文章的全文:
如果您最近尝试使用pip安装包,则可能遇到以下错误:Could not fetch URL https://pypi.python.org/simple/Django/: There was a problem confirming the ssl certificate:
Will skip URL https://pypi.python.org/simple/Django/ when looking for download links for Django==1.5.1 (from -r requirements.txt (line 1))
Could not fetch URL https://pypi.python.org/simple/: There was a problem confirming the ssl certificate:
Will skip URL https://pypi.python.org/simple/ when looking for download links for Django==1.5.1 (from -r requirements.txt (line 1))
Cannot fetch index base URL https://pypi.python.org/simple/
Could not fetch URL https://pypi.python.org/simple/Django/1.5.1: There was a problem confirming the ssl certificate:
Will skip URL https://pypi.python.org/simple/Django/1.5.1 when looking for download links for Django==1.5.1 (from -r requirements.txt (line 1))
Could not fetch URL https://pypi.python.org/simple/Django/: There was a problem confirming the ssl certificate:
Will skip URL https://pypi.python.org/simple/Django/ when looking for download links for Django==1.5.1 (from -r requirements.txt (line 1))
Could not find any downloads that satisfy the requirement Django==1.5.1 (from -r requirements.txt (line 1))
No distributions at all found for Django==1.5.1 (from -r requirements.txt (line 1))
Storing complete log in /Users/paul/.pip/pip.log
这似乎是旧版本的OpenSSL与pip 1.3.1不兼容的问题。如果您使用的是非库存的Python发行版(特别是EPD 7.3),那么您很可能有一个不需要大量工作就无法使用pip 1.3.1的设置。
目前最简单的解决方法是安装pip 1.2.1,它不需要SSL:curl -O https://pypi.python.org/packages/source/p/pip/pip-1.2.1.tar.gz
tar xvfz pip-1.2.1.tar.gz
cd pip-1.2.1
python setup.py install
如果你使用的是EPD,并且你没有将它用于一个可能出现问题的类,那么你可能需要考虑安装新的化身:热情的冠层。我知道他们已经意识到了前一个版本的OpenSSL所带来的问题,并且可以想象他们现在正在使用一个新的版本,这个版本应该与pip 1.3.1很好地配合。