I created an environment with the following command: virtualenv venv --distribute
I cannot remove it with the following command: rmvirtualenv venv
- This is part of virtualenvwrapper as mentioned in answer below for virtualenvwrapper
I do an ls
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.
If virtual environment was activated using Powershell script - Activate. ps1, the Deactivate. ps1 was not created, while the documentation says that it should. "You can deactivate a virtual environment by typing “deactivate” in your shell.
You can clean out old PyCharm interpreters that are no longer associated with a project via Settings -> Project Interpreter, click on the gear in the top right, then click "More". This gives you a listing where you can get rid of old virtualenvs that PyCharm thinks are still around.
Just type "workon" with no arguments and hit enter. The command to leave is "deactivate", as answered below.
"The only way I can remove it seems to be:
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.
Just to echo what @skytreader had previously commented, rmvirtualenv
is a command provided by virtualenvwrapper
, not virtualenv
. Maybe you didn't have virtualenvwrapper
installed?
See VirtualEnvWrapper Command Reference for more details.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With