在哪里可以下载带有适用于 Windows 的 psycopg2 的二进制鸡蛋?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5382801/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Where can I download binary eggs with psycopg2 for Windows?
提问by Piotr Dobrogost
I'm looking for binary eggs with psycopg2's binaries for Windows but can't find any.
On http://initd.org/psycopg/download/there's only source package and link to Windows port of Psycopgwhich provides binary installers but no binary eggs.
我正在寻找带有适用于 Windows 的 psycopg2 二进制文件的二进制鸡蛋,但找不到。
在http://initd.org/psycopg/download/上只有源包和Psycopg 的 Windows 端口链接,它提供二进制安装程序,但没有二进制鸡蛋。
The reason I'm looking for binary egg is I'd like to install psycopg in virtualenv and it's not(thisanswer describes why it usually ispossible) possible with standard Windows installers which look for installed Python in the registry.
我正在寻找二进制 egg 的原因是我想在 virtualenv 中安装 psycopg 而它不是(这个答案描述了为什么它通常是可能的)使用在注册表中查找已安装 Python 的标准 Windows 安装程序是可能的。
Side note: I guess psycopg is rather popular library and it strikes me as odd not to provide binary eggs for download on project's page. Am I missing something here?
旁注:我猜 psycopg 是一个相当流行的库,而且在项目页面上不提供二进制鸡蛋供下载让我感到很奇怪。我在这里错过了什么吗?
回答by ig0774
We just use something like easy_install http://www.stickpeople.com/projects/python/win-psycopg/psycopg2-2.4.win32-pyx.x-pg9.0.3-release.exe
from within the virtual environment.
我们只是easy_install http://www.stickpeople.com/projects/python/win-psycopg/psycopg2-2.4.win32-pyx.x-pg9.0.3-release.exe
在虚拟环境中使用类似的东西。
Seems to work; we end up with psycopg2 in the virtual environment and not in the base environment, which I take to be the endgame here.
似乎有效;我们最终在虚拟环境中而不是在基础环境中使用 psycopg2,我认为这是这里的最后阶段。
UPD:List of available realeases available on stickpeople.com site
UPD:stickpeople.com 网站上可用的realeases列表
回答by Andreas Jung
Google for "psycopg2 windows" will give you this with the first hit:
谷歌搜索“psycopg2 windows”会给你第一次命中:
http://stickpeople.com/projects/python/win-psycopg/
http://stickpeople.com/projects/python/win-psycopg/
Repackaging the .exe files is documented here:
重新打包 .exe 文件记录在此处:
Installing psycopg2 (postgresql) in virtualenv on windows
在 windows 上的 virtualenv 中安装 psycopg2 (postgresql)
Apart from that: contact the pyscopg2 maintainers and ask to provide windows binaries.
除此之外:联系 pyscopg2 维护者并要求提供 Windows 二进制文件。
(Dupe)
(欺骗)
回答by keni
For the new guys stumbling upon, stickpeople have these great new pip options on github: http://www.stickpeople.com/projects/python/win-psycopg/or https://github.com/nwcell/psycopg2-windows
对于偶然发现的新人,stickpeople 在 github 上有这些很棒的新 pip 选项:http: //www.stickpeople.com/projects/python/win-psycopg/或 https://github.com/nwcell/psycopg2-windows
回答by reco
The stickpeople website is down and the exe is no longer available, i have the psycopg2 for python 2.7 and amd64 arch that works for me, you can download it here: psycopg2-2.5.4.win-amd64-py2.7 20 281 29.exe.
Stickpeople 网站已关闭且 exe 不再可用,我有适用于 python 2.7 的 psycopg2 和适用于我的 amd64 arch,您可以在此处下载:psycopg2-2.5.4.win-amd64-py2.7 20 281 29 .exe。