Search code examples
pythonvirtualenvvirtualenvwrapper

Rename an environment with virtualenvwrapper


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.


Solution

  • You can use:

    cpvirtualenv oldenv newenv
    rmvirtualenv oldenv
    

    So in your case:

    cpvirtualenv doors django
    rmvirtualenv doors