今天安装了thulac运行中出现了module 'time' has no attribute 'clock'错误,经过查询发现是
Python3.8不再支持time.clock,但在调用时依然包含该方法;
有效处理:
用time.perf_counter()替换。
感谢Python3.8 异常AttributeError module 'time' has no attribute 'clock'_搞怪小新-CSDN博客
本文介绍在使用Python3.8时遇到的module 'time' has no attribute 'clock'错误,并提供了解决方案,即将time.clock替换为time.perf_counter。
今天安装了thulac运行中出现了module 'time' has no attribute 'clock'错误,经过查询发现是
Python3.8不再支持time.clock,但在调用时依然包含该方法;
用time.perf_counter()替换。
感谢Python3.8 异常AttributeError module 'time' has no attribute 'clock'_搞怪小新-CSDN博客
1568

被折叠的 条评论
为什么被折叠?
