【发布时间】:2016-04-05 07:26:31
【问题描述】:
我试图从 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
谷歌搜索没有多大帮助。对此的任何帮助将不胜感激。
附:我不是在寻找预编译的二进制文件。要求是从源代码构建它。
【问题讨论】:
标签: python python-2.7 pycrypto