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

在python3.8中flask项目运行报错: AttributeError: module 'time' has no attribute 'clock'解决方案

主要原因是因为python3.8中不支持clock了, 需要替换成time.pref_counter()替换就可以了

 

需要修改

flask_sqlalchemy

的底层,看下面两步操作。

 

 

Ctry + 鼠标左键进去

 

 

 

 修改后重新启动就好啦。

posted @ 2021-03-01 20:25  茉莉`  阅读(2717)  评论(1)    收藏  举报
Live2D