首页
社区
课程
招聘
[原创]How to handle errors is documented here with python 3.9 install pycrypto。
2022-1-11 10:45 4432

[原创]How to handle errors is documented here with python 3.9 install pycrypto。

2022-1-11 10:45
4432

 

how to install pycrypto:

 

Start Menu -> x64 Native Tools Command Prompt for VS 2019

1
2
set CL=-FI"%VCINSTALLDIR%Tools\MSVC\14.29.30037\include\stdint.h"
python -m pip install pycrypto

 

ModuleNotFoundError: No module named 'Crypto'

 

Crypto -> crypto, replace it in all .py files


 

ModuleNotFoundError: No module named 'winrandom'

1
import winrandom

replace with

1
from . import winrandom

 

AttributeError: module 'time' has no attribute 'clock'

1
t = time.clock()

replace with

1
t = time.perf_counter()

[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课

收藏
点赞0
打赏
分享
最新回复 (0)
游客
登录 | 注册 方可回帖
返回