Python ansible无法使用“安装”进行完美安装;brew安装ansible;命令在MacOS中不起作用?错误:-sh:/usr/local/bin/ansible:没有这样的文件或目录

Python ansible无法使用“安装”进行完美安装;brew安装ansible;命令在MacOS中不起作用?错误:-sh:/usr/local/bin/ansible:没有这样的文件或目录,python,macos,ansible,homebrew,Python,Macos,Ansible,Homebrew,我尝试使用终端(brew)以及.dmg软件包安装Python command: brew install python and this path is python when install using dmg /Library/Frameworks/Python.framework/Versions/3.8/bin/python3 但是我得到下面列出的错误 之后,我尝试了ansible安装: brew install ansible 和哪个ansible 所有或主机的最后一个ansi

我尝试使用终端(
brew
)以及
.dmg
软件包安装Python

command: brew install python
and this path is python when install using dmg
/Library/Frameworks/Python.framework/Versions/3.8/bin/python3
但是我得到下面列出的错误

之后,我尝试了
ansible
安装:

brew install ansible
哪个ansible

所有或主机的最后一个ansible命令ping:

这是操作系统特有的问题还是其他问题?非常感谢您的帮助。

如果
brew
,请检查您的
brew
版本。。。 如果确实需要
brew安装
,请检查更新。 macOS 10.13.6上有一个。并修复它

... 但是我建议使用
pip安装
由于
ansible
依赖于
python
,我强烈建议使用安装
python
应用程序的常用方法:

pip3 install ansible 
或者,从回购协议:

git clone https://github.com/ansible/ansible.git
cd ansible
pip3 install -r requirements.txt
python3 setup.py install
brew
警告 截图上的警告说:

ansible已经安装,只是没有链接

所以,你可以:

如果没有帮助:

brew doctor
brew doctor