Pip module command fails, shell alternative succeeds

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?

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.

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