How do I pip install from Google Code?

隐身守侯 提交于 2019-12-24 02:25:17

问题


I'm trying to install the Gevent beta which is hosted on Google Code here but I can't seem to get the command right (I keep getting a cannot detect archive format error). What is the command to pip install gevent-1.0b4 from Google Code?

Here is the command and error:

(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


回答1:


Your URL is wrong, it returns a 404 (which you can verify by visiting it in your browser).

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

would work. But as it says on the project home page on Google Code, gevent now lives on github.

So it's

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



回答2:


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



来源:https://stackoverflow.com/questions/12609376/how-do-i-pip-install-from-google-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!