2013-04-05 40 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,但只是想爲其他碰巧遇到這種情況的人注意到這一點。