Skip to content

How do I install a Python module on localhost so that Ansible finds it? #257

Discussion options

You must be logged in to vote

@geoffreyvanwyk hi and welcome to the project!
Have you tried to change ansible_default_interpreter https://docs.ansible.com/ansible/latest/reference_appendices/python_3_support.html#:~:text=To%20explicitly%20configure%20a%20Python,cfg%20. ?
Ansible seems to use python2 in your case, so that's probably why it doesn't see libs for python3.
Could you please try and let us know if it helps?
Thank you for the question!

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@geoffreyvanwyk
Comment options

@Andersson007
Comment options

@geoffreyvanwyk
Comment options

@Andersson007
Comment options

Answer selected by geoffreyvanwyk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants