INSTALLATION DOCUMENTS BY RAVI

Wednesday, April 12, 2017

Installing Python 2.6 on Linux


# wget https://www.python.org/ftp/python/2.6.6/Python-2.6.6.tgz

# tar -zxvf Python-2.6.6.tgz

# cd Python-2.6.6

# ./configure && make && make install

There can be a dependency error use

# yum install gcc cc

Add the install path (/usr/local/bin/python by default) to ~/.bash_profile.

# ln -s /usr/bin/python26 ~/bin/python

# export PATH=~/bin:$PATH # Append this to your ~/.bash_profile for persistence

Now, python command will execute python 2.6

No comments:

Post a Comment

Loading xml file data to oracle table using python

Sample xml file (test.xml): <?xml version="1.0"?> <data>     <customer name="Ravi" >     ...