Trying to install Django Framework. This when I am trying to activate an virtual environment for the very first time:
mkvirtualenv test
mkvirtualenv: command not foundLocation of the installation:
which virtualenvwrapper.sh
/usr/local/bin/virtualenvwrapper.shUpdate from research
I didn't use sudo when installing.
Here is tutorial one and tutorial two.
2 Answers
you use python3, but virtualenv uses python2 by default. So you need to modify it.
Add the following sentence at the end of the '~/.bashrc',to modify the default python and configure virtualenv:
VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3
export WORKON_HOME=~/.environments
source /usr/local/bin/virtualenvwrapper.shand then reload this configuration file with the command:
source ~/.bashrc I needed to change the command to mkdir and follow different steps.