1

当我运行mlflow ui时发生以下错误:

Traceback (most recent call last):
  File "c:\anaconda3\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\anaconda3\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Anaconda3\Scripts\gunicorn.exe\__main__.py", line 5, in <module>
  File "c:\anaconda3\lib\site-packages\gunicorn\app\wsgiapp.py", line 9, in <module>
    from gunicorn.app.base import Application
  File "c:\anaconda3\lib\site-packages\gunicorn\app\base.py", line 12, in <module>
    from gunicorn import util
  File "c:\anaconda3\lib\site-packages\gunicorn\util.py", line 9, in <module>
    import fcntl
ModuleNotFoundError: No module named 'fcntl'
Traceback (most recent call last):
  File "c:\anaconda3\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\anaconda3\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Anaconda3\Scripts\mlflow.exe\__main__.py", line 9, in <module>
  File "c:\anaconda3\lib\site-packages\click\core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "c:\anaconda3\lib\site-packages\click\core.py", line 697, in main
    rv = self.invoke(ctx)
  File "c:\anaconda3\lib\site-packages\click\core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "c:\anaconda3\lib\site-packages\click\core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "c:\anaconda3\lib\site-packages\click\core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "c:\anaconda3\lib\site-packages\mlflow\cli.py", line 131, in ui
    mlflow.server._run_server(file_store, file_store, host, port, 1)
  File "c:\anaconda3\lib\site-packages\mlflow\server\__init__.py", line 48, in _run_server
    env=env_map, stream_output=True)
  File "c:\anaconda3\lib\site-packages\mlflow\utils\process.py", line 38, in exec_cmd
    raise ShellCommandException("Non-zero exitcode: %s" % (exit_code))
mlflow.utils.process.ShellCommandException: Non-zero exitcode: 1

我使用了 anaconda + python 3.6.5 并安装了 git 并使用 and 设置C:\Program Files\Git\bin\git.exe路径C:\Program Files\Git\cmd

我安装mlflow了 whit pip install mlflow,它的版本是 0.2.1。

我在环境变量中设置了一个具有名称GIT_PYTHON_GIT_EXECUTABLE和值的变量。C:\Program Files\Git\bin\git.exe

我该如何解决这个问题?

4

2 回答 2

1

首先卸载'mlflow'和'waitress',然后再次安装'mlflow'。现在试试它的工作原理

于 2021-03-21T14:11:55.447 回答
0

mlflow 文档已经说过

注意 2:我们目前不支持在 Windows 上运行 MLflow。尽管如此,我们仍将感谢任何有助于使 MLflow 在 Windows 上更好地工作的贡献。

您遇到了fcntl问题:它在 MS Windows 平台上不可用,因为它是fcntl 函数的“包装器” ,可在 POSIX 兼容系统上使用。(有关更多详细信息,请参阅https://stackoverflow.com/a/1422436/236007。)

解决这个问题需要相应地修改 mlflow 的源代码。

于 2018-07-17T14:17:19.907 回答