Skip to content

Instantly share code, notes, and snippets.

@harunyasar
Created December 30, 2017 18:52
Show Gist options
  • Save harunyasar/aaf032def93c8190fa0fd5fe325e432c to your computer and use it in GitHub Desktop.
Save harunyasar/aaf032def93c8190fa0fd5fe325e432c to your computer and use it in GitHub Desktop.
virtualenwrapper
sudo easy_install pip
sudo pip install virtualenv
sudo pip install virtualenvwrapper
export WORKON_HOME=~/env
mkdir -p $WORKON_HOME
source /usr/local/bin/virtualenvwrapper.sh
# Say if you have Python 2.7.6 and you want to create virtual env with the existing one
mkvirtualenv venv1
# Say if you have Python 2.7.6 and you want to create virtual env with Python 3.6.3
# To do this you have to have Python 3.6.3
# This example tested on macOS High Sierra and can work
mkvirtualenv venv2 --python=/Library/Frameworks/Python.framework/Versions/3.6/bin/python3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment