尝试1:pip3 install pycrypto -i https://pypi.tuna.tsinghua.edu.cn/simple 安装报错
尝试2:C++费劲升级也不行又报错:
warning: GMP or MPlR library not found; Not building Crypto.PublicKey. fastmath.building 'Crypto.Random.OSRNG.winrandom' extension
尝试3:离线包直接set.py也不行
解决:最终发现安装:
pycryptodome替换就行了
安装命令:
pip3 install pycryptodome -i https://pypi.tuna.tsinghua.edu.cn/simple
pip3 install Crypto -i https://pypi.tuna.tsinghua.edu.cn/simple
然后把crypto首字母改成大写即可。