我无法从我的机器中删除 ansible。
如果我运行:
which ansible
/usr/local/bin/ansible
和
ansible --version
ansible 2.7.0
config file = /Users/josephroberts/.ansible.cfg
configured module search path = ['/Users/josephroberts/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.9/site-packages/ansible
executable location = /usr/local/bin/ansible
python version = 3.9.12 (main, Mar 26 2022, 15:52:10) [Clang 13.0.0 (clang-1300.0.29.30)]
然后我可以清楚地看到它已经安装并运行在我的计算机上。
但我好像无法卸载它?这是怎么回事?
pip uninstall ansible
WARNING: Skipping ansible as it is not installed.
pip3 uninstall ansible
WARNING: Skipping ansible as it is not installed.
brew uninstall ansible
Error: No such keg: /usr/local/Cellar/ansible
答案1
我刚刚遇到了同样的问题。我通过安装获得了较新的版本,而无需卸载。
sudo -H pip3 install ansible