在Windows上安装Fabric(Python库)时出现“错误:找不到vcvarsall.bat”

这个问题已经在这里有了答案: error: Unable to find vcvarsall.bat 41个我尝试在Windows 7 64位计算机上安装Fabric,而我得到的只是这个糟糕的错误消息...

这个问题已经在这里有了答案:            >            error: Unable to find vcvarsall.bat                                    41个
我尝试在Windows 7 64位计算机上安装Fabric,而我得到的只是这个糟糕的错误消息:

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,我已经能够解决此问题.非常感谢迈克尔!

本文标题为:在Windows上安装Fabric(Python库)时出现“错误:找不到vcvarsall.bat”

基础教程推荐