简体   繁体   中英

AttributeError: module 'time' has no attribute 'clock' in MLFlow UI

I have successfully installed MLFlow using pip install mlflow but while running mlflow ui command in the console it gives the following error

    time_func = time.clock
AttributeError: module 'time' has no attribute 'clock'

I am aware of the fact that time.clock is deprecated for Python v3.8 and above. How can I fix this, as I don't want to downgrade python version.

I have been using MLflow with Python 3.8.5, and it works just fine. I use Ubuntu 20.04, my MLflow version is 1.13.1, and my python was installed with miniconda.

As this is probably a version problem, you can try to install the same mlflow and python version that I am using. If it does not work, please share more information about your environment.

Try updating your SQLAlchemy version

>>> pip install -U sqlalchemy
>>> mlflow ui

I jumped into a similar issue. Reference - Github Issue

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM