Python install in different path

  1. wget https://www.python.org/ftp/python/2.7.6/Python-2.7.6.tgz
  2. tar xzf Python-2.7.6.tgz
  3. cd ~/Python-2.7.6/
  4. ./configure –prefix=/usr/local
  5. make
  6. sudo make altinstall – Make sure you use altinstall as it wont make any changes to existing python versions.

Using particular version of python:

  • alias python=’/usr/bin/python3.4′
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s