问题
I want to install psycopg2 on Windows 8.1 x64 computer and I'm using python 2.7.6 from python.org. As I launch the installer as administrator, I got this error,
I press confirm and next button, but I can't choose or type my python directory.
I have seen this post after I got those problem, Psycopg installation on windows, but it seems that that is a different case as mine.
How to successfully install psycopg2 on Windows 8.1 x64 computer?
回答1:
Install the binary distribution of psycopg2 for the same architecture as your Python version.
Your Psycopg2 architecture must match the architecture of the Python binary you installed. So if you have a 32-bit Python 2.7 you must get the 32-bit psycopg2; if you have the 64-bit Python 2.7, you must get the 64-bit pycopg2.
This applies to any Python module that contains binary modules, not just psycopg2.
来源:https://stackoverflow.com/questions/22754097/install-psycopg2-on-windows-8-1