我正在安装Python psycopg2,它的编译失败:操作系统:Windows 8 64位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
1 回答
python27.lib
不在您的LIBRARY_PATH
上 . 它's hard to say why or provide more info because you didn'解释你如何达到这一点 - 命令运行,安装Python版本等 .无论如何,我强烈建议你just use the binary installers . 请参阅以下现有答案:
Install psycopg2 on Windows 8.1
How to easy_install psycopg2 on windows 7?
How to install psycopg2 with "pip" on Python?
installing psycopg2 on Windows xp using pip and virtualenv
Can't install psycopg2