user3779621
user3779621

Reputation: 1

Python psycopg2-2.5.1 installation on Windows 8

I am installing Python psycopg2 , its compilation fails: OS: Windows 8 64 bit Python: 2.7 mingw-w64

C:/mingw-w64/x86_64-4.9.0-win32-seh-rt_v3-rev2/mingw64/bin/../lib/gcc/x86_64-w64
-mingw32/4.9.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lpython27

collect2.exe: error: ld returned 1 exit status
error: command 'C:\\mingw-w64\\x86_64-4.9.0-win32-seh-rt_v3-rev2\\mingw64\\bin\\
gcc.exe' failed with exit status 1

Upvotes: 0

Views: 593

Answers (1)

Craig Ringer
Craig Ringer

Reputation: 324511

cannot find -lpython27

python27.lib is not on your LIBRARY_PATH. It's hard to say why or provide more info because you didn't explain how you got to this point - commands run, Python version installed, etc.

In any case, I strongly recommend that you just use the binary installers. See these existing answers:

Upvotes: 2

Related Questions