How do I install a Python module on localhost so that Ansible finds it? #257
-
I want to use the The following did not help either, after uninstalling with pip3 again:
The installation command from the PyMySQL page on PYPI (
Localhost is WSL2 Ubuntu 20.04. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
@geoffreyvanwyk hi and welcome to the project! |
Beta Was this translation helpful? Give feedback.
@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!