Rename an environment with virtualenvwrapper Rename an environment with virtualenvwrapper python python

Rename an environment with virtualenvwrapper


You can use:

cpvirtualenv oldenv newenvrmvirtualenv oldenv

So in your case:

cpvirtualenv doors djangormvirtualenv doors


if you do:

$ ack-grep -ai doors ~/.virtualenvs/django/bin

you'll notice that will have doors as location and not django, you'll to change each file with the new location.

solution: after renamed the folder execute the command below.

$ sed -i "s/doors/django/g" ~/.virtualenvs/django/bin/*

now if you do:

$ workon django(django)hobbes3@hobbes3