snippetpythonCriticalCanonical
How do I remove/delete a virtualenv?
Viewed 0 times
virtualenvhowremovedelete
Problem
I created an environment with the following command:
Trying to remove it with the following command:
I do an
The only way I can remove it seems to be:
Note that the environment is not active. I'm running Ubuntu 11.10. Any ideas? I've tried rebooting my system to no avail.
virtualenv venv --distributeTrying to remove it with the following command:
rmvirtualenv venv does not work.I do an
lson my current directory and I still see venvThe only way I can remove it seems to be:
sudo rm -rf venvNote that the environment is not active. I'm running Ubuntu 11.10. Any ideas? I've tried rebooting my system to no avail.
Solution
"The only way I can remove it seems to be:
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.
Note that this is the same regardless of what kind of virtual environment you are using.
sudo rm -rf venv"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.
Note that this is the same regardless of what kind of virtual environment you are using.
virtualenv, venv, Anaconda environment, pyenv, pipenv are all based the same principle here.Context
Stack Overflow Q#11005457, score: 884
Revisions (0)
No revisions yet.