# Installing additional python packages

**URL:** <https://forum.ansible.com/t/installing-additional-python-packages/35218>\
**Category:** AWX Project\
**Created:** [May 24, 2021, 12:55pm UTC](https://forum.ansible.com/t/installing-additional-python-packages/35218 "2021-05-24T12:55:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brandon\_Ellis](https://avatars.discourse-cdn.com/v4/letter/b/dec6dc/32.png) [@Brandon\_Ellis](https://forum.ansible.com/u/Brandon_Ellis)\
**Post date:** [May 24, 2021, 12:55pm UTC](https://forum.ansible.com/t/installing-additional-python-packages/35218/1 "2021-05-24T12:55:05Z")

</div>

I need to install python-ldap for an inventory plugin I’m using.

How do I install a python package for use in a plugin?

Do I really need to remake the entire image with my desired virtualenv [as described here](https://docs.ansible.com/ansible-tower/3.8.3/html/administration/openshift_configuration.html#ag-os-custom-venv), or is there another way?

---

<div class="post-metadata">

**Author:** ![Patrick\_Dreher](https://avatars.discourse-cdn.com/v4/letter/p/aca169/32.png) [@Patrick\_Dreher](https://forum.ansible.com/u/Patrick_Dreher)\
**Post date:** [May 27, 2021, 12:45pm UTC](https://forum.ansible.com/t/installing-additional-python-packages/35218/2 "2021-05-27T12:45:04Z")

</div>

Depends on how you’re running your AWX.  
In case of Kubernetes I wouldn’t know an alternative since I’m not familiar with that.  
In case of some regular Docker setup you could mount it into the container.

also it isn’t “remaking the entire image” since your merely add another layer that contains your virtualenv.
