gpt4 book ai didi

python - 链接 : fatal error LNK1104: cannot open file 'python27.lib'

转载 作者:太空狗 更新时间:2023-10-29 17:44:43 26 4
gpt4 key购买 nike

我试图从 Python 2.7.10 64 位 Windows 版本的源代码编译 pycrypto-2.6.1 并遇到以下错误。

Processing pycrypto-2.6.1.tar.gz
Writing c:\users\sivasuba\appdata\local\temp\easy_install-ecznz_\pycrypto-2.6.1\setup.cfg
Running pycrypto-2.6.1\setup.py -q bdist_egg --dist-dir c:\users\sivasuba\appdata\local\temp\easy_install-ecznz_\pycrypto-2.6.1\egg-dist-tmp-us3gka
warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
winrand.c
LINK : fatal error LNK1104: cannot open file 'python27.lib'
error: Setup script exited with error: command 'C:\\Users\\sivasuba\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\amd64\\link.exe' failed with exit status 1104

谷歌搜索没有太大帮助。如有任何帮助,我们将不胜感激。

附言我不是在寻找预编译的二进制文件。要求是从源代码构建它。

最佳答案

您的链接器似乎没有找到 python27.lib 库。

LIB 和 LIBPATH 是链接器和编译器正在使用的 Windows 环境变量。

你的电脑上python27.lib在哪个文件夹下?

请确认 LIB 环境变量包含 python27.lib 的路径

如果它没有解决您的问题 - 尝试将 python27.lib 路径也添加到 LIBPATH

关于python - 链接 : fatal error LNK1104: cannot open file 'python27.lib' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36419747/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com