Rename an environment with virtualenvwrapper

hobbes3 picture hobbes3 · Mar 2, 2012 · Viewed 15.7k times · Source

I have an environment called doors and I would like to rename it to django for the virtualenvwrapper.

I've noticed that if I just rename the folder ~/.virtualenvs/doors to django, I can now call workon django, but the environment still says (doors)hobbes3@hobbes3.

Answer

NickAldwin picture NickAldwin · Sep 23, 2012

You can use:

cpvirtualenv oldenv newenv
rmvirtualenv oldenv

So in your case:

cpvirtualenv doors django
rmvirtualenv doors