-
Notifications
You must be signed in to change notification settings - Fork 24
Installing Python locally
Espen Angell Kristiansen edited this page Nov 20, 2013
·
3 revisions
The guide assumes the install path is ${HOME}. This will create bin and lib directories in your users home directory.
Put this in .bashrc
# Important that this new bin-directory is set first
export PATH=${HOME}/bin:$PATH
$ cd /tmp
$ wget http://www.python.org/ftp/python/2.7.2/Python-2.7.2.tar.bz2
$ tar jxvf Python-2.7.2.tar.bz2
$ cd Python-2.7.2
$ ./configure --prefix=${HOME}
$ make
$ make install
Test it!
$ python --version
Python 2.7.2
If you want to install anything in your new python install, you will have to install pip: http://www.pip-installer.org/en/latest/installing.html.
As long as you have installed PIP, all you need is:
$ pip install virtualenv