# Ansible Galaxy pip Dependencies

**URL:** <https://forum.ansible.com/t/ansible-galaxy-pip-dependencies/26190>\
**Category:** Ansible Project\
**Tags:** galaxy-ng\
**Created:** [December 2, 2017, 12:17am UTC](https://forum.ansible.com/t/ansible-galaxy-pip-dependencies/26190 "2017-12-02T00:17:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrew\_Vaughan](https://avatars.discourse-cdn.com/v4/letter/a/919ad9/32.png) [@Andrew\_Vaughan](https://forum.ansible.com/u/Andrew_Vaughan)\
**Post date:** [December 2, 2017, 12:17am UTC](https://forum.ansible.com/t/ansible-galaxy-pip-dependencies/26190/1 "2017-12-02T00:17:02Z")

</div>

Hello all,

I have a plugin that’s included with a role I intend for Ansible Galaxy.

[https://galaxy.ansible.com/andrewvaughan/ansible-prompt/](https://galaxy.ansible.com/andrewvaughan/ansible-prompt/)

I need, in this case, to have a Python pip dependency installed in order for the role to work correctly. I have not been able to find any documentation or questions regarding the installation of Python dependencies to support Ansible roles. Is this possible? If so, what is the best practice for making it work?

I suppose I could always add pip install -r ~/.ansible/roles/andrewvaughan.ansible-prompt/requirements.txt as an instruction in the readme, but that _really_ takes away from the ease-of-use factor that Galaxy provides.

Thanks in advance,

Andrew

---

<div class="post-metadata">

**Author:** ![tkuratom](https://avatars.discourse-cdn.com/v4/letter/t/b19c9b/32.png) [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Post date:** [December 2, 2017, 3:10pm UTC](https://forum.ansible.com/t/ansible-galaxy-pip-dependencies/26190/2 "2017-12-02T15:10:06Z")

</div>

Typically you make it the first task in your role.

-Toshio
