错误信息

Traceback (most recent call last):
  File ".\bot.py", line 23, in <module>
    from mega import Mega
  File "E:\Workplace\Python\project\Google-Drive-Uploader\mega\__init__.py", line 3, in <module>
  File "E:\Workplace\Python\project\Google-Drive-Uploader\mega\mega.py", line 10, in <module>
    from Crypto.PublicKey import RSA
  File "E:\Workplace\Python\project\Google-Drive-Uploader\venv\lib\site-packages\Crypto\PublicKey\RSA.py", line 78, in <module>
    from Crypto import Random
  File "E:\Workplace\Python\project\Google-Drive-Uploader\venv\lib\site-packages\Crypto\Random\__init__.py", line 28, in <module>
    from Crypto.Random import OSRNG
  File "E:\Workplace\Python\project\Google-Drive-Uploader\venv\lib\site-packages\Crypto\Random\OSRNG\__init__.py", line 34, in <module>   
    from Crypto.Random.OSRNG.nt import new
  File "E:\Workplace\Python\project\Google-Drive-Uploader\venv\lib\site-packages\Crypto\Random\OSRNG\nt.py", line 28, in <module>
    import winrandom
ModuleNotFoundError: No module named 'winrandom'

解决方案:
在文件lib\site-packages\Crypto\Random\OSRNG\nt.py中修改

import winrandom

from Crypto.Random.OSRNG import winrandom

问题解决。

最后修改:2020 年 04 月 30 日 10 : 13 PM