ERROR: virtualenvwrapper could not find virtualenv in your path ERROR: virtualenvwrapper could not find virtualenv in your path python python

ERROR: virtualenvwrapper could not find virtualenv in your path


Re-installling virtualenv fixed my problem.

I had the same issue.

$ mkvirtualenv mysiteERROR: virtualenvwrapper could not find virtualenv in your path

After a lot of time consuming efforts, I decided to re-install virtualenv.

sudo apt install virtualenv

This fixed my issues.I already had virtualenv installed. But I think it got broken or met with some errors.


I am using python3 with virtualenvwrapper installed on Ubuntu 18.04, using pip3 without sudo. If you are in this situation, you might find interesting my configuration.

In the end of my .bashrc I added the following rows (remember to put your username in the YOUR_USERNAME field):

export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3export WORKON_HOME=$HOME/.virtualenvsexport VIRTUALENVWRAPPER_VIRTUALENV=/home/YOUR_USERNAME/.local/bin/virtualenvsource /usr/local/bin/virtualenvwrapper.sh

Then restart the cli with ctrl-D ctrl-T or reload the config with source ~/.bashrc.Then you should be good to go! Try the installation with:

lsvirtualenvmkvirtualenv testworkon testdeactivatermvirtualenv test

If you could create and delete a virtual environment, you are ready to go.


  1. sudo find / -name "virtualenv"

    Then I find the executable file path is:

    /usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/bin/virtualenv

  2. Touch a soft link in the /usr/local/bin/ directory or add the path to .bash_profile, I prefer the former:

    sudo ln -s /usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/bin/virtualenv /usr/local/bin/virtualenv