报错信息:
from Crypto import Random
from Crypto.Random import OSRNG
from Crypto.Random.OSRNG.posix import new
Crypto/Random/OSRNG/posix.py", line 66 except IOError, e: ^^^^^^^^^^ SyntaxError: mul
报错原因:
版本问题,我的是由于python版本高于3.10
解决办法:
使用pycryptodome
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pycryptodome==3.10.1