# Setting python virtualenv prompt?

**URL:** <https://forum.ansible.com/t/setting-python-virtualenv-prompt/17150>\
**Category:** Ansible Project\
**Created:** [December 28, 2014, 7:18pm UTC](https://forum.ansible.com/t/setting-python-virtualenv-prompt/17150 "2014-12-28T19:18:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roy\_Smith](https://avatars.discourse-cdn.com/v4/letter/r/e495f1/32.png) [@Roy\_Smith](https://forum.ansible.com/u/Roy_Smith)\
**Post date:** [December 28, 2014, 7:18pm UTC](https://forum.ansible.com/t/setting-python-virtualenv-prompt/17150/1 "2014-12-28T19:18:56Z")

</div>

I’ve got the pip module working to set up my virtualenv:

`  
tasks:

- name: create virtualenv and install third-party packages  
pip: chdir=“{{ remote\_base\_dir }}/deploy”  
virtualenv=python-env  
executable=“{{ remote\_base\_dir }}/deploy/python-env/bin/pip”  
requirements={{ item }}  
with\_items:
- base-requirements
- web-requirements  
`

But, I’d like to also customize the python prompt by passing:

`  
–prompt="(my prompt) "

`

to the virtualenv command. How can I do that?
