Windows 10上的Ansible tower-cli - tower-cli'不被认为是内部或外部命令

时间:2016-09-14 21:21:42

标签: python pip ansible ansible-playbook ansible-tower

从这个链接: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 PATH ,我认为我这样做了:

enter image description here

但是同样的错误,任何想法?

1 个答案:

答案 0 :(得分:0)

如果你在windows shell中运行命令python并得到那个错误,那么' python'不被识别为内部或外部命令,可操作程序或bathc文件,然后执行此操作:

python 替换为 py ,因此在命令提示符下键入py即可正常工作。

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