Sunday, January 1, 2023

After install ansible using pip in mac, I can't able to issue any ansible commands

 I installed ansible in my Mac using PIP. After installation i am not able to execute any ansible commands.

Fix :

Only for current session, you can export the path

export PATH="/Users/<username>/Library/Python/3.10/bin:$PATH"

For making it permeant, you need to open the file

vi ~/.zshrc (If not present, feel free to create it)

export PATH="/Users/<username>/Library/Python/3.10/bin:$PATH:

Source it,

source ~/.zshrc

After this, i could able to use ansible commands in my Mac

No comments:

Post a Comment