I have installed python2 and python3 in my Mac osx and currently I'm using python3. And I am able to pip3 install virtualenv
and virtualenvwrapper
. The problem is whenever I restart my terminal, the settings for virtualenvwrapper
don't work, like I can't use the commands mkvirtualenv
and workon
. The error I get is bash: the command workon is not found
. I think there must be something wrong with my settings about the virtualenvwrapper. Here is what I try:
edit the ~/.bashrc:
export WORKON_HOME=~/Envs
source ~/Envs/django_projects/bin/virtualenvwrapper.sh
All my virtualenv packages are installed in the ~/Envs and after that, I source the .bashrc
and it works, I could use workon and mkvirtualenv but once I reopen a new terminal it still could find't the workon command.
Does anyone know what's wrong with my setting?