SudoStack SudoStack - 10 months ago 147
Python Question

How do I remove/delete a virtualenv?

I created an environment with the following command:

virtualenv venv --distribute

I cannot remove it with the following command:
rmvirtualenv venv

I do an
on my current directory and I still see venv

The only way I can remove it seems to be:
sudo rm -rf venv

Note that the environment is not active. I'm running Ubuntu 11.10. Any ideas? I've tried rebooting my system to no avail.

Answer Source

That's it! There is no command for deleting your virtual environment. Simply deactivate it and rid your application of its artifacts by recursively removing it.