2013-04-05 101 views
0

我建立了一个新的virtualenv。从内部来看,pip找不到任何分布。在环境之外,它可以。下面是输出:pip无法从virtualenv内找到分布

(wagon-admin)[[email protected] 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

我有同样的问题,但意识到我根本没有激活我的virtualenv。一旦我激活它,安装工作。不知道为什么。

看着你粘贴的命令行,它看起来像你激活你的env,但只是想为其他碰巧遇到这种情况的人注意到这一点。