-
Notifications
You must be signed in to change notification settings - Fork 2
Python
Matthew Harris edited this page Jan 21, 2016
·
1 revision
###Installing / Upgrading Python
First try using your package manager, else install from source
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
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
-
virtualenv -p /path/to/bin/python2.7 env