python 3.x – How do I remove/delete a virtualenv?
python 3.x – How do I remove/delete a virtualenv?
The only way I can remove it seems to be:
sudo rm -rf venv
Thats 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.
Just to echo what @skytreader had previously commented, rmvirtualenv
is a command provided by virtualenvwrapper
, not virtualenv
. Maybe you didnt have virtualenvwrapper
installed?
See VirtualEnvWrapper Command Reference for more details.
python 3.x – How do I remove/delete a virtualenv?
Use rmvirtualenv
Remove an environment, in the $WORKON_HOME
.
Syntax:
rmvirtualenv ENVNAME
You must use deactivate before removing the current environment.
$ rmvirtualenv my_env
Reference: http://virtualenvwrapper.readthedocs.io/en/latest/command_ref.html
Related posts:
- Trouble installing python VirtualEnv in windows 10 using powershell
- How to leave/exit/deactivate a Python virtualenv
- virtualenv – Powershell doesnt running scripts even after setting execution policy
- Use different Python version with virtualenv
- python – No module named virtualenvwrapper
- Whats the difference between Docker and Python virtualenv?
- python 3.x – How do I remove/delete a virtualenv?
- virtualenvwrapper and Python 3
- virtualenvwrapper – List all virtualenv
- python – What is the difference between venv, pyvenv, pyenv, virtualenv, virtualenvwrapper, pipenv, etc?