Skip to content

Instantly share code, notes, and snippets.

@tekton
Created June 18, 2014 20:17
Show Gist options
  • Save tekton/1a6d4959b56bc3b1b775 to your computer and use it in GitHub Desktop.
Save tekton/1a6d4959b56bc3b1b775 to your computer and use it in GitHub Desktop.
Ubuntu 14.04 Python 3.4 Virtual Environment
#!/bin/bash
V_PATH=.
VENV=VENV
# check for folder path and name...
if [ $1 ]; then
V_PATH=$1
fi
if [ $2 ]; then
VENV=$2
fi
pyvenv-3.4 $V_PATH/$VENV --without-pip
source $V_PATH/$VENV/bin/activate
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
deactivate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment