0

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,

enter image description here

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?

Community
  • 1
  • 1
Heinz
  • 2,415
  • 6
  • 26
  • 34
  • 1
    Did you install the x64 build of Python 2.7, and is this the x64 psycopg2? (or, alternately, are both 32-bit?) – Craig Ringer Mar 31 '14 at 05:28
  • @CraigRinger thank you for your reminder, I couldn't install psycopg2 because I downloaded 32-bit version installer. 64-bit version is be installed successfully with x64 python 2.7.6! – Heinz Mar 31 '14 at 05:40

1 Answers1

3

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.

Craig Ringer
  • 307,061
  • 76
  • 688
  • 778