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 Psycopg which provides binary installers but no binary eggs.The reason I'm looking for binary egg is I'd like to install psycopg in virtualenv and it's not (this answer describes why it usually is possible) possible with standard Windows installers which look for installed Python in the registry.
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?
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.
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.
UPD: List of available realeases available on stickpeople.com site
Google for "psycopg2 windows" will give you this with the first hit:
http://stickpeople.com/projects/python/win-psycopg/
Repackaging the .exe files is documented here:
Installing psycopg2 (postgresql) in virtualenv on windows
Apart from that: contact the pyscopg2 maintainers and ask to provide windows binaries.
(Dupe)
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
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.
精彩评论