# Custom Virtual Environments Not Registered

**URL:** <https://forum.ansible.com/t/custom-virtual-environments-not-registered/30052>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [April 3, 2019, 3:59pm UTC](https://forum.ansible.com/t/custom-virtual-environments-not-registered/30052 "2019-04-03T15:59:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kim\_Spasaro](https://avatars.discourse-cdn.com/v4/letter/k/c0e974/32.png) [@Kim\_Spasaro](https://forum.ansible.com/u/Kim_Spasaro)\
**Post date:** [April 3, 2019, 3:59pm UTC](https://forum.ansible.com/t/custom-virtual-environments-not-registered/30052/1 "2019-04-03T15:59:22Z")

</div>

I’ve been following instructions for setting up custom virtual environments on AWX, but I the venvs never become accessible. Any idea what I’m doing wrong? (cross-posted to StackOverflow)

Steps so far:

1. Created virtualenvs at `/var/lib/awx/venv/py2` and `/var/lib/awx/venv/py3`
2. Sent authenticated `PATCH` request to update venv path setting
  - Endpoint: `http://localhost:8052/api/v2/settings/system`
  - Body: `{ "CUSTOM_VENV_PATHS": ["/var/lib/awx/venv/"] }`

The `/api/v2/config` endpoint never shows anything but the default virtualenv.

```auto
"custom_virtualenvs": [
  "/var/lib/awx/venv/ansible/"
]

```

Other things I’ve tried:

- Restarting the AWX task container

- Setting `CUSTOM_VENV_PATHS = ['/var/lib/awx/venv/']` in `/etc/tower/settings.py`

---

<div class="post-metadata">

**Author:** ![vgolwala](https://avatars.discourse-cdn.com/v4/letter/v/f17d59/32.png) [@vgolwala](https://forum.ansible.com/u/vgolwala)\
**Post date:** [April 3, 2019, 5:54pm UTC](https://forum.ansible.com/t/custom-virtual-environments-not-registered/30052/2 "2019-04-03T17:54:15Z")

</div>

Could you please check if you have the same virtual environments on awx-web container as well?

---

<div class="post-metadata">

**Author:** ![Kim\_Spasaro](https://avatars.discourse-cdn.com/v4/letter/k/c0e974/32.png) [@Kim\_Spasaro](https://forum.ansible.com/u/Kim_Spasaro)\
**Post date:** [April 3, 2019, 8:39pm UTC](https://forum.ansible.com/t/custom-virtual-environments-not-registered/30052/3 "2019-04-03T20:39:48Z")

</div>

That was it, thank you! Why does the web container need virtual environments installed?

---

<div class="post-metadata">

**Author:** ![Christopher\_Meyers](https://avatars.discourse-cdn.com/v4/letter/c/3e96dc/32.png) [@Christopher\_Meyers](https://forum.ansible.com/u/Christopher_Meyers)\
**Post date:** [April 4, 2019, 11:21am UTC](https://forum.ansible.com/t/custom-virtual-environments-not-registered/30052/4 "2019-04-04T11:21:58Z")

</div>

We check the directory for custom virtual envs in the request response cycle (the web container).
