python Crypto 模块安装

一、ModuleNotFoundError: No module named ‘Crypto’
python3.6的安装目录Lib—-site-package中查看是否有Crypto文件夹,这时看到有crypto文件夹,将crypto重命名为Crypto即可,然后出现了另一个错误说没有Crypto.Cipher——>
二、“ModuleNotFoundError:No module named ‘Crypto.Cipher’”
于是又去Crypto文件夹下看,发现不存在Cipher文件夹,卸载Crypto:pip uninstall pycrypto;然后安装pycryptodome:pip install pycryptodome但是又报错——>
三、pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host=‘files.pythonhosted.org’, port=443): Read timed out.设置超时时间,
pip --default-timeout=100 install pycryptodome
安装成功——>

Successfully installed pycryptodome-3.7.2

你可能感兴趣的:(python)