[英]AttributeError: module 'time' has no attribute 'clock' chatterbot
Just started with the chatterbox application and got this error:- error刚开始使用聊天框应用程序并收到此错误:-错误
After some research, I found that time.clock has been removed for py 3.8+.经过一番研究,我发现 py 3.8+ 的 time.clock 已被删除。 My python version is 3.9.7.
我的 python 版本是 3.9.7。 I have checked the solutions provided here , but after checking the directory of my error code I am unable to find the code mentioned there:-
我已经检查了此处提供的解决方案,但是在检查了我的错误代码目录后,我找不到那里提到的代码:-
Step 2第2步
Go to your error the last line and go to that directory and open that particular file. Go 到您的错误最后一行,go 到该目录并打开该特定文件。 search time.clock using ctrl+f and replace it with time.time
使用 ctrl+f 搜索time.clock并将其替换为time.time
time.clock is not there. time.clock 不存在。
How to proceed on this?如何进行?
just use this - import time time.clock = time.time只需使用这个 - 导入时间 time.clock = time.time
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.