dalongNOTES

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~~


分类:

技术点:

相关文章:

  • 2021-11-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-08
  • 2021-07-30
  • 2021-09-05
猜你喜欢
  • 2022-12-23
  • 2021-07-30
  • 2022-12-23
  • 2021-08-24
  • 2022-12-23
  • 2021-10-01
  • 2022-12-23
相关资源
相似解决方案