Python MLflow:无效的_参数_值:不支持的URI'/mlruns';用于模型注册表存储

Python MLflow:无效的_参数_值:不支持的URI'/mlruns';用于模型注册表存储,python,mlflow,Python,Mlflow,我在尝试在模型注册表中注册模型时遇到此错误。有人能帮我吗 RestException: INVALID_PARAMETER_VALUE: Unsupported URI './mlruns' for model registry store. Supported schemes are: ['postgresql', 'mysql', 'sqlite', 'mssql']. See https://www.mlflow.org/docs/latest/tracking.html#storag

我在尝试在模型注册表中注册模型时遇到此错误。有人能帮我吗

RestException: INVALID_PARAMETER_VALUE: Unsupported URI './mlruns' for model registry store. 
Supported schemes are: ['postgresql', 'mysql', 'sqlite', 'mssql']. 
See https://www.mlflow.org/docs/latest/tracking.html#storage for how to setup a compatible server.

Mlflow需要DB作为模型注册表的数据存储 所以,您必须使用DB作为后端存储运行跟踪服务器,并将模型记录到此跟踪服务器。 使用DB的最简单方法是使用SQLite

mlflow server \
    --backend-store-uri sqlite:///mlflow.db \
    --default-artifact-root ./artifacts \
    --host 0.0.0.0
并将MLFLOW_TRACKING_URI环境变量设置为http://localhost:5000 或

到达后http://localhost:5000 您可以从UI或代码注册记录的模型

mlflow.set_tracking_uri("http://localhost:5000")