I\'m trying to create a virtualenv with virtualenvwrapper
, but when I use mkvirtualenv
I get the following :
ERROR: virtualenvwrapper c
ERROR: virtualenvwrapper could not find virtualenv in your path
This error means - program virtualenv
is not in your system path. This mostly happens if you install virtualenv
via pip without sudo. This kind of installation stores data in users local directory e.g ~/.local/bin
. So first step is to find where this binary present. You can do that using locate
program. First update its database using sudo updatedb
. Then run locate *bin/virtualenv
. Whatever path you get, append it in system path variable. This you can do by adding below line in your shell config file e.g. ~/.bashrc or ~/.zshenv
.
export PATH=$PATH:/your/path
e.g.
export PATH=$PATH:~/.local/bin
Now open new shell and try again. Error should be gone.