# installs PIP globally curl https://bootstrap.pypa.io/get-pip.py | python # installs virtualenv globally pip install virtualenv # creates a virtualenv virtualenv -p python2.7 venv # activates the virtualenv source venv/bin/activate