Skip to content

Instantly share code, notes, and snippets.

What would you like to do?

Setup New Mac

Install Homebrew

/usr/bin/ruby -e "$(curl -fsSL"

Install, Setup Python

brew install python
pip install --upgrade pip setuptools

# check pip
adil-mbp01:~ adil$ which pip
adil-mbp01:~ adil$ ls -l /usr/local/bin/p*
lrwxr-xr-x  1 adil  admin  31 Jan 14 12:19 /usr/local/bin/pip -> ../Cellar/python/2.7.13/bin/pip

# Install Virtualenv
pip install virtualenv

# Create a Virtual Env (in the current dir)
# pointing it to a Python version (optional)
virtualenv -p /usr/local/bin/python2.7 myvenv

# Note to do this globally...
echo export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python2.7 >> ~/.bashrc

# Start using myenv by sourcing activate script which sets up environment vars
source ./myvenv/bin/activate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment