# Pip module command fails, shell alternative succeeds

**URL:** <https://forum.ansible.com/t/pip-module-command-fails-shell-alternative-succeeds/13699>\
**Category:** Ansible Project\
**Created:** [October 16, 2013, 10:31pm UTC](https://forum.ansible.com/t/pip-module-command-fails-shell-alternative-succeeds/13699 "2013-10-16T22:31:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![klenwell](https://avatars.discourse-cdn.com/v4/letter/k/bbe5ce/32.png) [@klenwell](https://forum.ansible.com/u/klenwell)\
**Post date:** [October 16, 2013, 10:31pm UTC](https://forum.ansible.com/t/pip-module-command-fails-shell-alternative-succeeds/13699/1 "2013-10-16T22:31:44Z")

</div>

This task succeeds:

> - name: Install pip requirements  
> shell: /usr/local/pythonbrew/venvs/Python-${python\_version}/venv/bin/pip install -r ${project\_root}/current/requirements.pip  
> executable=/bin/bash

This task fails with error “ **Failed to find required executable virtualenv** ”:

> - name: Install pip requirements  
> pip:  
> requirements=${project\_root}/current/requirements.pip  
> virtualenv=/usr/local/pythonbrew/venvs/Python-${python\_version}/venv

Any ideas how I can get the pip module command to succeed?

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [October 16, 2013, 10:38pm UTC](https://forum.ansible.com/t/pip-module-command-fails-shell-alternative-succeeds/13699/2 "2013-10-16T22:38:09Z")

</div>

The underlying problem is that even though the venv is specified it does not amend the path.

I believe this was fixed recently in 1.4 or there’s an accompanying pull request.

---

<div class="post-metadata">

**Author:** ![klenwell](https://avatars.discourse-cdn.com/v4/letter/k/bbe5ce/32.png) [@klenwell](https://forum.ansible.com/u/klenwell)\
**Post date:** [October 16, 2013, 11:07pm UTC](https://forum.ansible.com/t/pip-module-command-fails-shell-alternative-succeeds/13699/3 "2013-10-16T23:07:59Z")

</div>

Thanks for the information. I’ll look for the fix in a future release.
