Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/311.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python Windows 10上的Ansible tower cli-tower cli';不被识别为内部或外部命令_Python_Pip_Ansible_Ansible Playbook_Ansible Tower - Fatal编程技术网

Python Windows 10上的Ansible tower cli-tower cli';不被识别为内部或外部命令

Python Windows 10上的Ansible tower cli-tower cli';不被识别为内部或外部命令,python,pip,ansible,ansible-playbook,ansible-tower,Python,Pip,Ansible,Ansible Playbook,Ansible Tower,通过此链接:,您可以使用pip install ansible tower cli安装tower cli,但当您运行以下命令时:tower cli config host www.myWebsite.com 出现此错误:tower cli'未被识别为内部或外部命令,2016年9月14日15:41:49可操作程序或批处理文件。 我知道该错误意味着我需要将该可执行文件的位置添加到windows路径中,我以为这样做了: 但仍然是相同的错误,有什么想法吗?如果在windows shell中运行命令py

通过此链接:,您可以使用pip install ansible tower cli安装tower cli,但当您运行以下命令时:
tower cli config host www.myWebsite.com

出现此错误:
tower cli'未被识别为内部或外部命令,2016年9月14日15:41:49可操作程序或批处理文件。

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


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

如果在windows shell中运行命令python并出现该错误,“python”无法识别为内部或外部命令、可操作程序或bathc文件,请执行以下操作:

python替换为py,这样在命令提示符中键入
py
,它就可以工作了

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