我尝试安装 Fabric在我的 Windows 7 64 位机器上,我得到的只是这条糟糕的错误消息:
building 'Crypto.Random.OSRNG.winrandom' extension
warning: GMP or MPIR library not found; Not building
Crypto.PublicKey._fastmath.
error: Unable to find vcvarsall.bat
这个类似问题的答案都没有错误:Unable to find vcvarsall.bat为我工作。怎么办?
我相信根本原因如所述here :
Some Windows users whose Python is 64-bit have found that the PyCrypto
dependency winrandom may not install properly, leading to
ImportErrors. In this scenario, you’ll probably need to compile
winrandom yourself via e.g. MS Visual Studio. See #194 for info.
我已经能够通过从 Michael Foord's website 下载并安装 PyCrypto 二进制文件来解决问题。然后重新安装 Fabric。非常感谢迈克尔!