Python (English pronunciation: /ˈpaɪθən/), is an object-oriented, interpreted computer programming language, invented at the end of 1989. Python has the characteristics of simplicity, easy-to-learn, free, open source, portability, interpretability, and embeddability. It is an unrestricted, cross-platform open source programming language. support. |
1. Python download
Python download
Address: http://www.python.org/getit/
Version: Python-2.7.3.tgz
setuptoos download
Address: http://pypi.python.org/pypi/setuptools#downloads
Version: setuptools-0.6c11.tar.gz (md5)
Use wget to download:
wget http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz#md5=7df2a529a074f613b509fb44feefe74e
2. Install Python
View the python that comes with the system:
Plan to install 2.7.3, create a new directory -- download the installation package:
decompress
tar -zvxf Python-2.7.3.tgz
After unzipping, install Python:
./configure --prefix=/usr/local/python2.7.3 make make install
After the installation is successful, the directory is:
Create a soft link:
3. Install setuptools
Use wget to download:
[root@biao Python-2.7.3]# pwd /python/Python-2.7.3 [root@biao Python-2.7.3]# cd .. [root@biao python]# ll total 13832 drwxr-x--- 18 1000 1002 4096 Dec 5 18:05 Python-2.7.3 -rwxr-xr-x 1 root root 14135620 Dec 5 17:42 Python-2.7.3.tgz [root@biao python]# wget http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz#md5=7df2a529a074f613b509fb44feefe74e --18:18:59-- http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz Resolving pypi.python.org... 140.211.10.73 Connecting to pypi.python.org|140.211.10.73|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 256862 (251K) [application/octet-stream] Saving to: `setuptools-0.6c11.tar.gz' 100%[======================================================================] 256,862 126K/s in 2.0s 18:19:25 (126 KB/s) - `setuptools-0.6c11.tar.gz' saved [256862/256862]