修復在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

相關文章
相關標籤/搜索