It could be that the Python Ansible is using is not the same as the python in the main path. You can check all this by running;
# Check what Python comes first in the PATH and what Python pip is using which python pip --version # Check what Python Ansible is configured to run as head -n 1 $(which ansible) If the shebang in ansible is '#!/usr/bin/env python' then it should be using the Python in the main path but if it's another value and not what 'which python' returns then you need to make sure that either; - You install pywinrm to that Python environment, or - You install ansible to the Python environment that has pywinrm and other packages installed to Thanks Jordan -- 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-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/0e1bcbeb-a23b-4729-882a-8a5d5e4216bf%40googlegroups.com.