- 博客(1)
- 收藏
- 关注
原创 使用Python3.9的中文分词模块“thulac”出现AttributeError: module ‘time‘ has no attribute ‘clock‘
问题: 在pycharm中导入thulac分词的时候,出现了报错: AttributeError: module ‘time’ has no attribute ‘clock’ 原因: 我是用的是Python3.9,而Python3.8之后就不支持time.clock()了, 将其替换成time.pref_counter()就可以解决问题。 解决方案: 按照上方第一张图片箭头所示,点击并修改文件:CBTaggingDecoder.py,将其中的 start = time.clock() 修改为: star
2021-02-19 17:23:44
1460
8
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人