I recently updated to Python 3.8, and this dependency breaks pyomo for Python 3.8
Specifically, this line is creating trouble:
timer = time.clock
The function time.clock()has been removed in Python 3.8, and should be replaced with either time.perf_counter() or time.process_time().
From my reading of the Python documentation, it seems that time.perf_counter() is the one that should be used, although I am not very sure.
I recently updated to Python 3.8, and this dependency breaks pyomo for Python 3.8
Specifically, this line is creating trouble:
timer = time.clock
The functiontime.clock()
has been removed in Python 3.8, and should be replaced with eithertime.perf_counter()
ortime.process_time()
.From my reading of the Python documentation, it seems that
time.perf_counter()
is the one that should be used, although I am not very sure.