Neurohazard
Our democracy have been h4ck3d.

解决 Windows Python 3.5 “from Crypto.Cipher import AES” 问题

wpadmin~April 11, 2019 /System Management

解决 Windows Python 3.5 “from Crypto.Cipher import AES” 问题

错误信息

报错信息

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

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

解决方法
pip install pycryptodome

然后将 C:\Users\Administrator\AppData\Local\Programs\Python\Python36\Lib\site-packages 路径下的 crypto 目录的 c 改为 C (大写) 即可。

https://jingyan.baidu.com/article/67508eb47b864a9cca1ce48f.html

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.