0 votes
1 view
in Python by (47.8k points)

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 an 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.

1 Answer

0 votes
by (107k points)

To remove/delete a virtualenv there is no command for deleting your virtual environment. Simply deactivate it and it will be removed.

Note one thing that this process will be the same for every virtual environment regardless of what kind of virtual environment you are using. virtualenv, venv, Anaconda environment, pyenv, pipenv are all based on the same principle here.

if you want to learn python, visit this python tutorial and python course.

Related questions

0 votes
1 answer
0 votes
1 answer
+3 votes
2 answers
Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...