# interprete\_python error..

**URL:** <https://forum.ansible.com/t/interprete-python-error/36746>\
**Category:** Ansible Project\
**Created:** [June 17, 2022, 5:55am UTC](https://forum.ansible.com/t/interprete-python-error/36746 "2022-06-17T05:55:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shivakumar\_Venkatasw](https://avatars.discourse-cdn.com/v4/letter/s/e99b99/32.png) [@Shivakumar\_Venkatasw](https://forum.ansible.com/u/Shivakumar_Venkatasw)\
**Post date:** [June 17, 2022, 5:55am UTC](https://forum.ansible.com/t/interprete-python-error/36746/1 "2022-06-17T05:55:45Z")

</div>

Hi team,  
I’m traying to install python modules… during execute facing below error… please help me out…

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ImportError: No module named pkg\_resources  
fatal: [172.16.13.160]: FAILED! =\> {“changed”: false, “msg”: “Failed to import the required Python library (setuptools) on 172.16.13.160’s Python /usr/bin/python. Please read module documentation and install in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible\_python\_interpreter”}

---

<div class="post-metadata">

**Author:** ![dulhaver](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/dulhaver/32/1061_2.png) [@dulhaver](https://forum.ansible.com/u/dulhaver)\
**Post date:** [June 17, 2022, 7:30am UTC](https://forum.ansible.com/t/interprete-python-error/36746/2 "2022-06-17T07:30:40Z")

</div>

I am pretty new to Ansible myself, but based on the error message the first thing I would try was checking whether a package python-setuptools was installed on the 172.16.13.160 host.
