-1

从这个链接: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 中:

在此处输入图像描述

但仍然是同样的错误,有什么想法吗?

4

1 回答 1

0

如果您在 Windows shell 中运行命令 python 并收到该错误,“python”不被识别为内部或外部命令、可运行程序或 Bathc 文件,请执行以下操作:

python替换为py,因此py在命令提示符下键入它会起作用。

Again type "py" NOT "python" in your command prompt and it should work !
于 2016-09-19T18:14:58.703 回答