簡體   English   中英

AttributeError:模塊“時間”在 MLFlow UI 中沒有屬性“時鍾”

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

我已經使用pip install mlflow成功安裝了MLFlow ,但是在控制台中運行mlflow ui命令時出現以下錯誤

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

我知道time.clock對於Python v3.8及更高版本已棄用。 我該如何解決這個問題,因為我不想降級 python 版本。

我一直在使用帶有 Python 3.8.5 的 MLflow,它工作得很好。 我使用 Ubuntu 20.04,我的 MLflow 版本是 1.13.1,我的 python 安裝了 miniconda。

由於這可能是版本問題,您可以嘗試安裝我正在使用的相同 mlflow 和 python 版本。 如果它不起作用,請分享有關您的環境的更多信息。

嘗試更新您的 SQLAlchemy 版本

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

我跳進了一個類似的問題。 參考 - Github 問題

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM