python3.5 :ImportError: No module named Crypto.Cipher


from Crypto.Cipher import AES
ImportError: No module named 'Crypto'

windows 如果直接 pip install pycrypto 通常会要求安装 VC++ 的编译器,比较麻烦。


pip install pycryptodome

Windows安装后需要将Python下site-packages 下的 crypto 目录的 c 改为 C (大写)


再次 from Crypto.Cipher import AES 就可以正常使用了

Last modification:May 14th, 2019 at 08:47 pm
If you think my article is useful to you, please feel free to appreciate