简体   繁体   English

AttributeError:模块“时间”没有属性“时钟”聊天机器人

[英]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.

相关问题 Chatterbot:AttributeError:模块“时间”没有属性“时钟” - Chatterbot : AttributeError: module 'time' has no attribute 'clock' AttributeError:模块“时间”没有属性“时钟” - AttributeError: module 'time' has no attribute 'clock' 解决方案 - AttributeError: module 'time' has no attribute 'clock' - Solution for - AttributeError: module 'time' has no attribute 'clock' AttributeError:未找到模块“时间”没有属性“时钟” - AttributeError: not found module 'time' has no attribute 'clock' Flask(flask db init):AttributeError:模块“时间”没有属性“时钟” - Flask(flask db init): AttributeError: module 'time' has no attribute 'clock' AttributeError:模块“时间”在 MLFlow UI 中没有属性“时钟” - AttributeError: module 'time' has no attribute 'clock' in MLFlow UI AttributeError:模块“时间”在 Python 3.8 中没有属性“时钟” - AttributeError: module 'time' has no attribute 'clock' in Python 3.8 Jupyter 笔记本未启动 - AttributeError:模块“时间”没有属性“时钟” - Jupyter notebook is not launching - AttributeError: module 'time' has no attribute 'clock' AttributeError:模块“时间”在 SQLAlchemy python 3.8.2 中没有属性“时钟” - AttributeError: module 'time' has no attribute 'clock' In SQLAlchemy python 3.8.2 属性错误模块“时间”没有属性“时钟”(pyqt5) - attributeerror module 'time' has no attribute 'clock' (pyqt5)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM