导读 | Python(英语发音:/ˈpaɪθən/), 是一种面向对象、解释型计算机程序设计语言,由1989年底发明。python具有简单、易学、免费、开源、可移植性、解释性、可嵌入性等特点,是一种不受局限、跨平台的开源编程语言,它功能强大且简单易学,因而得到了广泛应用和支持。 |
1.Python下载
Python下载
地址: http://www.python.org/getit/
版本: Python-2.7.3.tgz
setuptoos下载
地址:http://pypi.python.org/pypi/setuptools#downloads
版本:setuptools-0.6c11.tar.gz(md5)
采用wget方式下载:
wget http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz#md5=7df2a529a074f613b509fb44feefe74e
2.安装Python
查看系统自带的python:
计划安装2.7.3,新建目录–下载安装包:
解压
tar -zvxf Python-2.7.3.tgz
解压后,安装Python:
./configure --prefix=/usr/local/python2.7.3 make make install
安装成功后目录为:
建立软链接:
3.安装setuptools
采用wget下载:
[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]
原创文章,作者:kirin,如若转载,请注明出处:https://blog.ytso.com/210888.html