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

时间:2020-07-28 01:11:47   收藏:0   阅读:1275

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

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

 

 技术分享图片

 

 修改后已经正常启动

原文:https://www.cnblogs.com/Liu-Hui/p/13388194.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!