修复在python3中import winrandom错误

问题:在windows的python3使用PyCrypto出现ImportError: No module named 'winrandom'错误python

处理:修改python3安装目录下的  lib/Crypto/Random/OSRNG/nt.py 文件中找到windows

NameError: name ‘file’ is not defined

修改成dom

from Crypto.Random.OSRNG import winrandom

原文:http://my.oschina.net/soarwilldo/blog/392606ide

相关文章
相关标签/搜索