Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't locate Ansible installed using pip on Mac

Installed Ansible on Mac using following command as documented here:

pip install --user ansible

However, can't find Ansible with version command:

~ $ ansible --version
-bash: ansible: command not found

any clues?

like image 716
Akshay Lokur Avatar asked Sep 05 '25 02:09

Akshay Lokur


1 Answers

For modern macOS/OSX, you need to find your ~/Library/Python/$version/bin directory and add it to your environment PATH export PATH=[YOUR ansible installed location]. This will help you locate the one where ansible got installed.

like image 132
bosari Avatar answered Sep 09 '25 02:09

bosari