No module named Crypto.Cipher

1.pip install pycropt 這中辦法常常會報錯:html

error: Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat). Get it from http://aka.ms/vcpython27
  • 1

彷佛也很麻煩。python

2.使用編譯好的安裝包。下載地址:ui

[pycropt](http://www.voidspace.org.uk/python/modules.shtml#pycrypto)
  • 1
  • 2

根據本身的版本如今對應的安裝便可。spa

然而,安裝完,或許並無什麼卵用,使用依舊報錯:翻譯

No module named Crypto.Cipher

通過苦苦搜索,終於在stackover上找到答案: 
打開連接以後請拉到最後一條回答code

I found the solution. Issue is probably in case sensitivity (on Windows). 
Just change the name of the folder: 
C:\Python27\Lib\site-packages\crypto 
to: C:\Python27\Lib\site-packages\Cryptohtm

翻譯過來就是: 
把crypto文件夾重命名爲Crypto。 
終於能夠正常使用了。ip

相關文章
相關標籤/搜索