#bash shell is assumed # is the same throughout the whole procedure and is the one you have write access to. #Install a local copy of python wget http://www.python.org/ftp/python/2.7.9/Python-2.7.9.tgz tar xzf Python-2.7.9.tgz cd Python-2.7.9 ./configure --enable-shared make altinstall prefix= exec-prefix= #set PATH, PYTHONPATH and LD_LIBRARY_PATH nano ~/.bash_profile #copy: export PATH=/bin:$PATH # export PYTHONPATH=/lib/python2.7/site-packages:$PYTHONPATH # export LD_LIBRARY_PATH=/lib:$LD_LIBRARY_PATH nano ~/.bashrc #copy: alias python="/bin/python" cd /bin/ ln -s python2.7 python exit (or reload .bash_profile, e.g. 'source ~/.bash_profile' or '. ~/.bash_profile') #after reloading bash, check if the paths work, e.g. which python) #install easy_install & pip wget https://pypi.python.org/packages/source/s/setuptools/setuptools-15.0.tar.gz#md5=2a6b2901b6c265d682139345849cbf03 --no-check-certificate tar xzvf setuptools-15.0.tar.gz cd setuptools-15.0 python setup.py install --prefix= easy_install pip #Install numpy, scipy and theano LDFLAGS="-L/lib -shared" pip install numpy scipy matplotlib ipython theano