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

相关文章
相关标签/搜索