-
Installing and setting up packages
pip2 install virtualenv virtualenvwrapper # ~/.profile if command -v virtualenvwrapper.sh >/dev/null; then export WORKON_HOME=$HOME/.virtualenvs export PROJECT_HOME=$HOME/src VIRTUALENVWRAPPER_PYTHON=$(command -v python2) VIRTUALENVWRAPPER_VIRTUALENV=$(command -v virtualenv) export VIRTUALENVWRAPPER_PYTHON VIRTUALENVWRAPPER_VIRTUALENV source "$(command -v virtualenvwrapper.sh)" fi
-
Creating a virtual environment via
virtualenv
virtualenv <DIR> source <DIR>/bin/activate
-
Creating a virtual environment via
virtualenvwrapper
mkvirtualenv <NAME>
-
Creating a virtual environment
python3 -m venv <DIR> source <DIR>/bin/activate