[mlflow ui] FileNotFoundError: [WinError 2] The system cannot find the file specified
See original GitHub issueAfter successfully installing mlflow using pip install mlflow
on my Windows system, I am trying to run the mlflow ui
command but it throws the following error.
(base) C:\Users\MAC Pathak\Documents\Projects\kaggle_stroke_prediction>mlflow ui
Traceback (most recent call last):
File "c:\programdata\anaconda3\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\programdata\anaconda3\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\ProgramData\Anaconda3\Scripts\mlflow.exe\__main__.py", line 7, in <module>
File "C:\Users\MAC Pathak\AppData\Roaming\Python\Python38\site-packages\click\core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "C:\Users\MAC Pathak\AppData\Roaming\Python\Python38\site-packages\click\core.py", line 782, in main
rv = self.invoke(ctx)
File "C:\Users\MAC Pathak\AppData\Roaming\Python\Python38\site-packages\click\core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\Users\MAC Pathak\AppData\Roaming\Python\Python38\site-packages\click\core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users\MAC Pathak\AppData\Roaming\Python\Python38\site-packages\click\core.py", line 610, in invoke
return callback(*args, **kwargs)
File "c:\programdata\anaconda3\lib\site-packages\mlflow\cli.py", line 280, in ui
_run_server(backend_store_uri, default_artifact_root, host, port, None, 1)
File "c:\programdata\anaconda3\lib\site-packages\mlflow\server\__init__.py", line 138, in _run_server
exec_cmd(full_command, env=env_map, stream_output=True)
File "c:\programdata\anaconda3\lib\site-packages\mlflow\utils\process.py", line 34, in exec_cmd
child = subprocess.Popen(
File "c:\programdata\anaconda3\lib\subprocess.py", line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "c:\programdata\anaconda3\lib\subprocess.py", line 1307, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:11 (2 by maintainers)
Top Results From Across the Web
running "mlflow ui" throwing file not found error on windows 10
CreateProcess(executable, args, FileNotFoundError: [WinError 2] The system cannot find the file specified. python · mlflow.
Read more >[WinError 2] The system cannot find the file specified' mean in ...
A solution which is perhaps a bit simpler than the mmap solution is to seek to the end of the file, and move...
Read more >FileNotFoundError: [WinError 2] The system cannot find the file ...
An error telling you that windows can't find the file specified, especially in the context of an attempt to run a program as...
Read more >Why Am I Seeing The Error "The System Cannot Find The File ...
Python WindowsError: [Error 2] The system cannot find the file specified. ... on my Windows system I am trying to run the mlflow...
Read more >When Things Go Wrong — PyInstaller 5.7.0 documentation
One of these errors can be puzzling, however: IOError("Python library not found!") PyInstaller needs to bundle the Python library, which is the main...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Add path location of mlflow package to your environment variables if global install check if mlflow is in C:\Users\user\AppData\Roaming\Python\Python37\site-packages.
If you are using Virtualenv use that path such as S:\dir\venv\Lib\site-packages\mlflow.
If problem still persists. Clear pip chache with ‘pip cache purge’ and redo the above steps.
I’m facing the same problem.
mlflow
works butmlflow ui
return the same error.when I uninstall waitress, mlflow and then reinstall mlflow, it works then. see here.
It seems like there is some version conflict of waitress if you have installed mlflow before. I guess uninstall mlflow will not automatically cleanup waitress. ps: I got mlflow command not recognized at first.(installed mlflow in a new conda env). After I uninstalled the mlflow from root, then reinstall it in the env, it works.