Windows 10 towercli'上的Ansible towercli'无法识别为内部或外部命令

2024-04-29 05:17:27 发布

您现在位置:Python中文网/ 问答频道 /正文

通过这个链接:https://github.com/ansible/tower-cli/,您可以使用pip install ansible tower cli安装tower cli,但是当您要运行一个命令时,比如:tower-cli config host www.myWebsite.com

您会得到这个错误:tower-cli' is not recognized as an internal or external command, 14-Sep-2016 15:41:49 operable program or batch file.

我知道这个错误意味着我需要将该可执行文件的位置添加到windows路径中,我以为我用的是:

enter image description here

但还是同样的错误,有什么想法吗?在


Tags: installpiporhttps命令githubcomconfig
1条回答
网友
1楼 · 发布于 2024-04-29 05:17:27

如果在windows shell中运行命令python并得到错误消息,“python”不会被识别为内部或外部命令、可操作程序或bathc文件,请执行以下操作:

将python替换为py,因此在命令提示符下键入py,它就可以工作了。

Again type "py" NOT "python" in your command prompt and it should work !

相关问题 更多 >