简体   繁体   English

使用pypiserver安装Python egg文件

[英]Using pypiserver to install Python egg files

I have to be missing something simple, but I have just set up a pypiserver (http://pypi.python.org/pypi/pypiserver) and have been unable to use it to install egg files. 我必须遗漏一些简单的东西,但我刚刚设置了一个pypiserver(http://pypi.python.org/pypi/pypiserver)并且无法使用它来安装egg文件。 It will serve tarballs (tar.gz files), but seemingly not eggs. 它将提供tarball(tar.gz文件),但似乎不是鸡蛋。 When I request the egg via "pip install" the pypiserver records an HTTP 200 (it records a 303 when I give it a bogus package name), but the pip install responds with "No distributions at all found for ". 当我通过“pip install”请求鸡蛋时,pypiserver会记录一个HTTP 200(当我给它一个假的软件包名称时,它会记录一个303),但是pip install会响应“找不到任何发行版”。

Am I missing something or is this simply not supported? 我错过了什么或者根本不支持? If not, what would be a recommended alternative for a quick and easy pypi server? 如果没有,那么快速简便的pypi服务器的推荐替代方案是什么? There seem to be several options. 似乎有几种选择。

Thanks 谢谢

I think pip always downloads sources and compiles them. 我认为pip总是下载源代码并编译它们。 Easyinstall can install from eggs as well. Easyinstall也可以从鸡蛋安装。

See Pip compared to easyinstall : 请参阅与easyinstall相比的Pip

pip doesn't do everything that easy_install does. pip并不能完成easy_install所做的一切。 Specifically: 特别:

It cannot install from eggs. 它不能从鸡蛋安装。 It only installs from source. 它只从源代码安装。 (In the future it would be good if it could install binaries from Windows .exe or .msi – binary install on other platforms is not a priority.) (将来如果能从Windows .exe或.msi安装二进制文件会很好 - 其他平台上的二进制安装不是优先考虑的事情。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM