# winrm error

**URL:** <https://forum.ansible.com/t/winrm-error/35076>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [April 28, 2021, 9:49am UTC](https://forum.ansible.com/t/winrm-error/35076 "2021-04-28T09:49:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Somasundaram\_R](https://avatars.discourse-cdn.com/v4/letter/s/c2a13f/32.png) [@Somasundaram\_R](https://forum.ansible.com/u/Somasundaram_R)\
**Post date:** [April 28, 2021, 9:49am UTC](https://forum.ansible.com/t/winrm-error/35076/1 "2021-04-28T09:49:53Z")

</div>

I am trying to access windows host from ansible.  
In my virtual environment, “pip list” command shows these packages installed  
**winrm**  
**pywinrm**  
**xmltodict**  
**…etc…**

when I play, playbook or adhoc command it shows error like as follows:  
**FAILED! =\> {“msg”: “winrm or requests is not installed: No module named xmltodict”}**

“which python” and “which pip” commands shows my virtual environment:  
**(my\_virtual\_environment)/bin/python**  
**(my\_virtual\_environment)\*\*\*\*/bin/pip**

Pls help me to find the issue. Thanks in advance.
