Install psycopg2 on Windows 8.1

喜夏-厌秋 提交于 2019-12-12 04:05:16

问题


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

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