当我运行mlflow ui
时,出现以下错误:
Traceback (most recent call last):
File "c:anaconda3librunpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:anaconda3librunpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:Anaconda3Scriptsgunicorn.exe__main__.py", line 5, in <module>
File "c:anaconda3libsite-packagesgunicornappwsgiapp.py", line 9, in <module>
from gunicorn.app.base import Application
File "c:anaconda3libsite-packagesgunicornappbase.py", line 12, in <module>
from gunicorn import util
File "c:anaconda3libsite-packagesgunicornutil.py", line 9, in <module>
import fcntl
ModuleNotFoundError: No module named 'fcntl'
Traceback (most recent call last):
File "c:anaconda3librunpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:anaconda3librunpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:Anaconda3Scriptsmlflow.exe__main__.py", line 9, in <module>
File "c:anaconda3libsite-packagesclickcore.py", line 722, in __call__
return self.main(*args, **kwargs)
File "c:anaconda3libsite-packagesclickcore.py", line 697, in main
rv = self.invoke(ctx)
File "c:anaconda3libsite-packagesclickcore.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "c:anaconda3libsite-packagesclickcore.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "c:anaconda3libsite-packagesclickcore.py", line 535, in invoke
return callback(*args, **kwargs)
File "c:anaconda3libsite-packagesmlflowcli.py", line 131, in ui
mlflow.server._run_server(file_store, file_store, host, port, 1)
File "c:anaconda3libsite-packagesmlflowserver__init__.py", line 48, in _run_server
env=env_map, stream_output=True)
File "c:anaconda3libsite-packagesmlflowutilsprocess.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,并用C:Program FilesGitbingit.exe
和C:Program FilesGitcmd
设置了路径。
我安装了带有pip install mlflow
的mlflow
,它的版本是0.2.1。
我在环境变量中设置了一个名为GIT_PYTHON_GIT_EXECUTABLE
、值为C:Program FilesGitbingit.exe
的变量。
我该如何解决这个问题?
首先卸载'mlflow'和'servatory',然后再次安装'mlflow'。现在尝试它工作
mlflow文档已经说明
注意2:我们目前不支持在Windows上运行MLflow。尽管如此,我们将感谢为MLflow做出的任何贡献在Windows上工作得更好。
您遇到了fcntl
问题:它在MS Windows平台上不可用,因为它是POSIX兼容系统上可用的fcntl函数的"包装器"。(请参见https://stackoverflow.com/a/1422436/236007了解更多详细信息。(
解决这个问题需要相应地修改mlflow的源代码。
我遇到了同样的问题,这些步骤对我有效:
- pip卸载mlflow
- pip-m虚拟环境名称
- pip安装conda
- pip安装mlflow
- mlflow ui-->信息:女服务员:上桌http://127.0.0.1:5000