如何修复“ windows_configure_web_node.py FileNotFoundError”中的“失败”

时间:2019-10-24 14:25:18

标签: python windows-machine-learning

我正在尝试配置Microsoft Machine Learning Server(9.4)以在本地计算机上工作。

我被迫遵循以下说明: https://docs.microsoft.com/en-us/machine-learning-server/operationalize/configure-machine-learning-server-one-box

# With elevated privileges, run the following commands.
# Set up both nodes on one machine
 az mlserver admin node setup --onebox --admin-password <Password> --confirm-password <Password>

我尝试重新安装机器学习服务器(不包括R),结果相同。

这是尝试配置机器学习服务器时显示的错误消息:

C:\WINDOWS\system32>az mlserver admin bootstrap
Admin password:
Confirm admin password:
fail The web node failed to be configured.
Failure in `windows_configure_web_node.py` FileNotFoundError
[WinError 2] The system cannot find the file specified
fail The compute node failed to be configured.
Failure in `windows_configure_compute_node.py` FileNotFoundError
[WinError 2] The system cannot find the file specified
The web node failed to be configured.
Failure in `windows_configure_web_node.py` FileNotFoundError
[WinError 2] The system cannot find the file specified
The compute node failed to be configured.
Failure in `windows_configure_compute_node.py` FileNotFoundError
[WinError 2] The system cannot find the file specified

其他人是否已经遇到/解决了该问题? 非常感谢你!

1 个答案:

答案 0 :(得分:0)

我能够找到解决问题的方法。

我的系统找不到powershell.exe,因为它没有添加到PATH环境变量中。

通过添加对

的引用
%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\

我可以启动服务器并运行它。