问题:
odoo14 python3.8 提示ImportError: cannot import name ‘clock’ from ‘time’ (unknown location),
解决方案 :
原因是3.8已经放弃time的clock。解决方案:找到对应源文件,该里面的内容将time中的clock用process_time来替代
from time import clock as timer 改为
from time import process_time as timer
odoo14 python3.8 提示ImportError: cannot import name ‘clock’ from ‘time’ (unknown location),
原因是3.8已经放弃time的clock。解决方案:找到对应源文件,该里面的内容将time中的clock用process_time来替代
from time import clock as timer 改为
from time import process_time as timer