michellc 发表于 2018-8-6 08:04:19

修复在python3中import winrandom错误

  问题:在windows的python3使用PyCrypto出现ImportError: No module named 'winrandom'错误
  处理:修改python3安装目录下的lib/Crypto/Random/OSRNG/nt.py 文件中找到
NameError: name ‘file’ is not defined  修改为
from Crypto.Random.OSRNG import winrandom  原文:http://my.oschina.net/soarwilldo/blog/392606
页: [1]
查看完整版本: 修复在python3中import winrandom错误