【问题标题】:Python psycopg2-2.5.1 installation on Windows 8在 Windows 8 上安装 Python psycopg2-2.5.1
【发布时间】:2014-08-17 10:12:16
【问题描述】:

我正在安装 Python psycopg2 ,它的编译失败: 操作系统:Windows 8 64 位 蟒蛇: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:找不到-lpython27 collect2.exe:错误:ld 返回 1 退出状态 错误:命令'C:\\mingw-w64\\x86_64-4.9.0-win32-seh-rt_v3-rev2\\mingw64\\bin\\ gcc.exe' 失败,退出状态为 1

【问题讨论】:

标签: python postgresql mingw32


【解决方案1】:

找不到-lpython27

python27.lib 不在您的LIBRARY_PATH 上。很难说出原因或提供更多信息,因为您没有解释您是如何走到这一步的——命令运行、Python 版本安装等。

无论如何,我强烈建议您just use the binary installers。查看这些现有答案:

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-02-17
    • 2013-12-19
    • 1970-01-01
    • 2020-02-16
    • 1970-01-01
    • 2020-02-29
    • 2015-02-03
    相关资源
    最近更新 更多