help needed to install Ansible on MacOS BigSur

136 views
Skip to first unread message

Zeynal Hajili

unread,
May 2, 2021, 11:58:57 AM5/2/21
to Ansible Project
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?

Kiran Kumar

unread,
May 2, 2021, 1:29:29 PM5/2/21
to ansible...@googlegroups.com
What is error you get ? 

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/c94ae6eb-52f6-4157-a2be-196c80dfbe35n%40googlegroups.com.

Zeynal Hajili

unread,
May 2, 2021, 1:32:22 PM5/2/21
to ansible...@googlegroups.com
Hello Kiran,

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

You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/GkO168MdxX8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAGhW9JuomAuCbHm00BwFmmUKukwBXPBSTnFu2bpMLTPtGX5pSQ%40mail.gmail.com.

f.floimai...@gmail.com

unread,
May 2, 2021, 1:59:12 PM5/2/21
to Ansible Project

It's probably not in your path.

Zeynal Hajili

unread,
May 2, 2021, 2:01:18 PM5/2/21
to ansible...@googlegroups.com
How can i verify please?

Zeynal Hajili

unread,
May 3, 2021, 4:40:30 PM5/3/21
to ansible...@googlegroups.com
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:

Zeynal Hajili

unread,
May 4, 2021, 4:22:33 AM5/4/21
to ansible...@googlegroups.com
team ,

I have solved it by creating symlink to correct path 

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

Reply all
Reply to author
Forward
0 new messages