简体   繁体   English

Windows 命令提示符 - nnictl 命令无法识别

[英]Windows Command prompt - nnictl command not recognized

I have tried installing nni packages in windows command prompt,it installed successfully.but when i tried to command,我尝试在 windows 命令提示符中安装 nni 包,它安装成功。但是当我尝试命令时,

"nnictl create --config nni\example/trails\mnist-pytorch\config_windows.yml" “nnictl 创建 --config nni\example/trails\mnist-pytorch\config_windows.yml”

in windows command prompt.it says,在 windows 命令提示符中。它说,

'nnictl' is not recognized as an internal or external command,operable program or batch file. 'nnictl' 不是内部或外部命令、可运行程序或批处理文件。

how can i fix this error?我该如何解决这个错误?

It is solved.解决了。 I just installed anaconda3 and tried installing nni packages in it.And also it recognized 'nnictl' command in anaconda3 prompt automatically by setting path variables.Thanks:)我刚刚安装了 anaconda3 并尝试在其中安装 nni 包。它还通过设置路径变量自动识别 anaconda3 提示符中的“nnictl”命令。谢谢:)

On my pc the nni package was already installed through Anaconda, but I've got the same error.在我的电脑上,nni package 已经通过 Anaconda 安装,但我遇到了同样的错误。 Instead of modifying the PATH variable I've written a batch script like:我没有修改 PATH 变量,而是编写了一个批处理脚本,例如:

set root=C:\Users\%USERNAME%\Anaconda3
call %root%\Scripts\activate.bat %root%
call C:\Users\%USERNAME%\AppData\Roaming\Python\Python38\Scripts\nnictl create --config config_windows.yml
pause

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM