Skip to content
Matthew Harris edited this page Jan 21, 2016 · 1 revision

###Installing / Upgrading Python

First try using your package manager, else install from source

Python 2.x.y]

cd ~/workbench

wget --no-check-certificate https://www.python.org/ftp/python/2.x.y/Python-2.x.y.tar.xz
tar xf Python-2.x.y.tar.zx 
cd Python-2.x.y
./configure --prefix=/Users/username/workbench/Python2
make && make install    
cd ../

wget https://pypi.python.org/packages/source/s/setuptools/setuptools-x.y.z.tar.gz --no-check-certificate
tar -zxvf setuptools-x.y.z.tar.gz 
cd setuptools-x.y.z
/Users/username/workbench/python2 setup.py install --user
cd ../

wget http://pypi.python.org/packages/source/p/pip/pip-x.y.z.tar.gz --no-check-certificate
tar -zxvf pip-x.y.z.tar.gz
cd pip-x.y.z
/Users/username/workbench/python2 setup.py install --user
cd ../

now that we have python 2.7 and pip 2.7 we can install python packages

/Users/username/.local/bin/pip-2.7 install X (--cert=/usr/ssl/certs/localcerts) if needed

Python 3.x.y

cd ~/workbench

wget http://www.python.org/ftp/python/3.3.3/Python-3.3.3.tgz --no-check-certificate 
tar xf Python-3.3.3.tgz 
cd Python-3.3.3
./configure --prefix=/Users/username/workbench/Python3
make && make install
cd ../

wget https://pypi.python.org/packages/source/s/setuptools/setuptools-x.y.z.tar.gz --no-check-certificate
tar -zxvf setuptools-x.y.z.tar.gz 
cd setuptools-x.y.z
/Users/username/workbench/python3 setup.py install --user
cd ../

wget https://pypi.python.org/packages/source/p/pip/pip-x.y.z.tar.gz --no-check-certificate
tar -zxvf pip-x.y.z.tar.gz
cd pip-x.y.z
/Users/username/workbench/python3 setup.py install --user
cd ../

now that we have python 3.3 and pip 3.3 we can install python packages

/Users/username/.local/bin/pip-3.3 install X (--cert=/usr/ssl/certs/localcerts) if needed

Virtual ENV

Clone this wiki locally