0

我设置了一个新的 virtualenv。在其中,pip 找不到任何分布。在环境之外,它可以。这是输出:

(wagon-admin)[me@pjs-macbook-pro wagon-admin]$ pip install Django
Downloading/unpacking Django
  Could not fetch URL https://pypi.python.org/simple/Django/: There was a problem confirming the ssl certificate: <urlopen error [Errno 1] _ssl.c:480: error:0D0890A1:asn1 encoding routines:ASN1_verify:unknown message digest algorithm>
  Will skip URL https://pypi.python.org/simple/Django/ when looking for download links for Django
  Could not fetch URL https://pypi.python.org/simple/: There was a problem confirming the ssl certificate: <urlopen error [Errno 1] _ssl.c:480: error:0D0890A1:asn1 encoding routines:ASN1_verify:unknown message digest algorithm>
  Will skip URL https://pypi.python.org/simple/ when looking for download links for Django
  Cannot fetch index base URL https://pypi.python.org/simple/
  Could not fetch URL https://pypi.python.org/simple/Django/: There was a problem confirming the ssl certificate: <urlopen error [Errno 1] _ssl.c:480: error:0D0890A1:asn1 encoding routines:ASN1_verify:unknown message digest algorithm>
  Will skip URL https://pypi.python.org/simple/Django/ when looking for download links for Django
  Could not find any downloads that satisfy the requirement Django
No distributions at all found for Django
Storing complete log in /Users/me/.pip/pip.log

我在 OSX 上,并使用virtualenvwrapper.$ mkvirtualenv <env name>

这发生在所有包上,而不仅仅是 django。

编辑:我在搜索中发现的唯一类似的东西:https ://github.com/pypa/pip/issues/829

4

2 回答 2

0

我有同样的问题,但意识到我没有激活我的 virtualenv。一旦我激活它,安装就成功了。不知道为什么。

查看您粘贴的命令行,您似乎激活了您的环境,但只是想为碰巧偶然发现的其他人注意这一点。

于 2013-04-08T09:24:45.890 回答
0

我更新到 python 2.7,现在一切正常。

于 2013-04-09T20:55:43.360 回答