2012-09-26 66 views
2

我嘗試安裝的是上Google Code here主辦的GEVENT測試階段,但我似乎無法得到正確的命令(我總是收到一個無法檢測存檔格式錯誤)。從Google Code下載pip install gevent-1.0b4的命令是什麼?如何從谷歌代碼安裝pip?

這是命令和錯誤:

(venv)zak$ pip install https://code.google.com/p/gevent/gevent-1.0b4.tar.gz Downloading/unpacking https://code.google.com/p/gevent/gevent-1.0b4.tar.gz HTTP error 404 while getting https://code.google.com/p/gevent/gevent-1.0b4.tar.gz Could not install requirement https://code.google.com/p/gevent/gevent-1.0b4.tar.gz because of error HTTP Error 404: Not Found Could not install requirement https://code.google.com/p/gevent/gevent-1.0b4.tar.gz because of HTTP error HTTP Error 404: Not Found for URL https://code.google.com/p/gevent/gevent-1.0b4.tar.gz

+3

'PIP安裝的http:// gevent.googlecode.com /文件/ GEVENT-1.0b4.tar.gz'爲我的作品就好了。 –

+0

https://code.google.com/p/gevent/gevent-1.0b4.tar.gz給出了404.你是如何構造這個URL的? –

+0

從谷歌代碼複製並粘貼。 – zakdances

回答

2

您的網址是錯誤的,它返回一個(您可以通過訪問它在瀏覽器中驗證)。

pip install http://gevent.googlecode.com/files/gevent-1.0b4.tar.gz 

會工作。但正如它在Google Code上的項目主頁上所說的,gevent現在生活在github

所以這是

pip install https://github.com/downloads/SiteSupport/gevent/gevent-1.0b4.tar.gz 
+2

我反而用''去安裝點子混帳混帳+:// github.com /實驗問答/ gevent.git @ 1.0b4#蛋= gevent''這一點,你可以很容易地改變''@''指向在存儲庫中的任何提交,而不僅僅是標記的發佈 – jterrace

1

嘗試pip install http://gevent.googlecode.com/files/gevent-1.0b4.tar.gz