我建立了一个新的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
答案 0 :(得分:0)
我有同样的问题,但意识到我没有激活我的virtualenv。一旦我激活它,安装工作。不知道为什么。
查看您粘贴的命令行,看起来您已经激活了您的环境,但只是想为其他偶然发现这一点的人注意到这一点。
答案 1 :(得分:0)
我更新到python 2.7,现在一切正常。