Download python
Download the installation package on the official website at the current address: https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tgz
Get python-2.7.9.tgz
Extract
Unzip the python-2.7.9.tgz into the current directory
Tar zxvf./python-2.7.9.tgz-c./
View Code
Installation
Switch to the root directory to start the installation
sudo./configuresudo makesudo make install
View Code
Test
The test has a wooden installation success, such as smooth, can see the following log
[Email protected] ~2.7.9 (default, APR 8, 05:59:564.4.7 20120313 (Red Hat 4.4.7-4< c4> for more information. >>>
View Code
The Hello World paradigm is a must-drop
# !/usr/bin/python Print ' Hello World ... ';
01.hello_world.py
Run 01.hello_world.py
Python 01.hello_world.py
View Code
Exit Python command line mode
Quit ()
View Code
At this point, Linux installs, tests Python to the next ...
Follow the notes: Install Python under Linux