我試圖在我的電腦上安裝PyCrypto 2.6庫。不過,我不斷收到以下錯誤Windows上的PyCrypto安裝錯誤
D:\Software\Python\package\pycrypto-2.6>python setup.py build
running build
running build_py
running build_ext
warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
building 'Crypto.Random.OSRNG.winrandom' extension
error: Unable to find vcvarsall.bat
我的系統有 的Windows 8專業版64位,Visual Studio企業2012和Python 3.3
要修正這個錯誤我試圖設置環境變量VS90COMNTOOLS=%VS110COMNTOOLS%
的建議通過fmuecke in the post error: Unable to find vcvarsall.bat,但它不適合我。
任何人都可以請告訴我如何解決這個錯誤。
僅供參考,不安裝VC2008等。
的Python 3.3是建立與VC2010。一般規則是擴展必須使用用於python的相同VC來構建。我建議你安裝VC2010,試一試,並相應地更新問題。 – SquareRootOfTwentyThree
我已經在我的問題提到了安裝Visual Studio/VC的另一個實例是不是我的選擇。 –
這爲我工作https://stackoverflow.com/a/41843310/2968001 –