help needed to install Ansible on MacOS BigSur

Hello team,

I am very new to Ansible and i am trying to install Ansible on my MacOS BigSur.

I followed official guide and tried to install it with following logs.

MacBook-Pro:~$ python3 -m pip install --user ansible

Collecting ansible

Using cached ansible-3.3.0-py3-none-any.whl

Requirement already satisfied: ansible-base<2.11,>=2.10.8 in ./Library/Python/3.8/lib/python/site-packages (from ansible) (2.10.8)

Requirement already satisfied: cryptography in ./Library/Python/3.8/lib/python/site-packages (from ansible-base<2.11,>=2.10.8->ansible) (3.4.7)

Requirement already satisfied: PyYAML in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from ansible-base<2.11,>=2.10.8->ansible) (5.3.1)

Requirement already satisfied: jinja2 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from ansible-base<2.11,>=2.10.8->ansible) (2.11.2)

Requirement already satisfied: packaging in ./Library/Python/3.8/lib/python/site-packages (from ansible-base<2.11,>=2.10.8->ansible) (20.9)

Requirement already satisfied: cffi>=1.12 in ./Library/Python/3.8/lib/python/site-packages (from cryptography->ansible-base<2.11,>=2.10.8->ansible) (1.14.5)

Requirement already satisfied: pycparser in ./Library/Python/3.8/lib/python/site-packages (from cffi>=1.12->cryptography->ansible-base<2.11,>=2.10.8->ansible) (2.20)

Requirement already satisfied: MarkupSafe>=0.23 in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (from jinja2->ansible-base<2.11,>=2.10.8->ansible) (1.1.1)

Requirement already satisfied: pyparsing>=2.0.2 in ./Library/Python/3.8/lib/python/site-packages (from packaging->ansible-base<2.11,>=2.10.8->ansible) (2.4.7)

Installing collected packages: ansible

Successfully installed ansible-3.3.0

it seems that ansible is already installed ,but i cannot even verify ansible version with ansible --version command.

Could you please let me know if i am doing anything wrong?

What is error you get ?

Hello Kiran,

I am not able to apply any command related to ansible ,basic one is ansible --version

It’s probably not in your path.

How can i verify please?

hey guys ,

Even when i try to uninstall it i see following

~$ pip uninstall ansible

Found existing installation: ansible 3.3.0

Uninstalling ansible-3.3.0:

Would remove:

team ,

I have solved it by creating symlink to correct path

ln -s ~/Library/Python/3.8/bin/ansible /usr/local/bin/ansible