1.0 安装: 直接找过来 whl 安装:https://pan.baidu.com/s/1ZYQp4Knwk-Bcr9hmx9IPyA pip安装:pip install pycrypto-2.6.1-cp36-cp36m-win_amd64.whl
看到 Successfully installed pycrypto-2.6.1 就安装好了。不过真的不一定可以用,可能会遇到找不到 Crypto 的问题 或者下边这个错误,所以还下要对 Crypto 修改一下:
ImportError: No module named 'winrandom' 2.0 更改源文件 修改 nt.py 文件。在你安装 Crypto 的目录 Crypto/Random/OSRNG/nt.py 下,例如我的是:
C:\\site-packages\Crypto\Random\OSRNG\nt.py 找到:import winrandom
修改为:from Crypto.Random.OSRNG import winrandom
保存。OVER~~
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有