bash: mkvirtualenv: command not found

Solution 1: For some reason, virtualenvwrapper.sh installed in /usr/bin/virtualenvwrapper.sh, instead of under /usr/local/bin. The following in my .bash_profile works… My install seems to work fine without sourcing virtualenvwrapper_bashrc Solution 2: Alternatively as mentioned below, you could leverage the chance that virtualenvwrapper.sh is already in your shell’s PATH and just issue a source `which virtualenvwrapper.sh`

How do I remove/delete a virtualenv?

“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 … Read more

Virtualenv – workon command not found

So far it was working fine but I restarted the shell The reason is because you restarted the shell. If you want this to work with each shell, you’ll need to add these to your ~/.bashrc file: After adding this, you’ll want to source ~/.bashrc so the changes take effect. You’ll find that you have access to virtualenvwrapper facilities in each new … Read more

What is the difference between venv, pyvenv, pyenv, virtualenv, virtualenvwrapper, pipenv, etc?

Recommendation for beginners: This is my personal recommendation for beginners: start by learning virtualenv and pip, tools which work with both Python 2 and 3 and in a variety of situations, and pick up other tools once you start needing them. PyPI packages not in the standard library: virtualenv is a very popular tool that creates isolated Python environments … Read more

How to leave/exit/deactivate a Python virtualenv

Usually, activating a virtualenv gives you a shell function named: which puts things back to normal. I have just looked specifically again at the code for virtualenvwrapper, and, yes, it too supports deactivate as the way to escape from all virtualenvs. If you are trying to leave an Anaconda environment, the command depends upon your version of conda. Recent versions (like … Read more