Description
When finishing installing virtualenvwrapper on macOS, the build-in command mkvirtualenv will not work with the error message “command not found: mkvirtualenv”.
Solution
which virtualenvwrapper.sh
Get the defult path /Library/Frameworks/Python.framework/Versions/3.7/bin/virtualenvwrapper.sh
vim ~/.bash_profile
Modify the content to
export WORKON_HOME=[IT'S THE DIRECTION PATH YOU SPECIFY]source /Library/Frameworks/Python.framework/Versions/3.7/bin/virtualenvwrapper.sh
Attention
All Django work repository will exsit in the directory your specify.
The following command to work
source ~/.bash_profile