2014-02-17 75 views
3

我試着在我的Windows 7 64位機上安裝Fabric安裝織物(Python庫)時,所有我得到的是這種糟糕的錯誤消息:「錯誤:無法找到vcvarsall.bat」在Windows

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爲我工作。該怎麼辦?

回答

3

我認爲根本原因是描述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二進制來解決問題,然後重新安裝光纖。非常感謝邁克爾!

+0

我看到這個問題與Python3.4版本。 Michael Foord網站上的PyCrypto二進制文件特定於Python 2.6。任何建議,請讓我知道。 –

+0

@DevPat Michael Foord網站上的二進制文件也擴展到Python v2.7,v3.2和v3.3(但不包括v3.4)。也許v3.3的二進制文件將爲你工作? http://www.voidspace.org.uk/downloads/pycrypto26/pycrypto-2.6.win32-py3.3.exe – urig

+0

非常感謝!我今天會嘗試這個 –

相關問題