python - 在 Windows 上安装 Fabric(Python 库)时出现 "error: Unable to find vcvarsall.bat"

标签 python windows fabric

<分区>

我尝试安装 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。非常感谢迈克尔!

关于python - 在 Windows 上安装 Fabric(Python 库)时出现 "error: Unable to find vcvarsall.bat",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21829188/

相关文章:

eclipse - 找不到 NDK 选项卡

c# - 重现 UserPreferenceChanged 事件以验证卡住问题已修复

python - 如何在 python 结构中提供公钥密码短语

python - Anki - 字段名称在哪里?

python - 如何从 GAE Python 的开发服务器 (dev_appserver.py) 提供电影文件?

python - 如何让数据挖掘器在网页上进行特定搜索?

python - 安装了 html5lib 但 BeautifulSoup 找不到它

c++ - 如何将 qprocess 带到前面?

python - 如何仅在单个主机上运行 @roles-decorated 结构任务