导读 | Python(英语发音:/ˈpaɪθən/), 是一种面向对象、解释型计算机程序设计语言,由1989年底发明。python具有简单、易学、免费、开源、可移植性、解释性、可嵌入性等特点,是一种不受局限、跨平台的开源编程语言,它功能强大且简单易学,因而得到了广泛应用和支持。 |
1.Python下载
Python下载
地址: //www.python.org/getit/
版本: Python-2.7.3.tgz
setuptoos下载
地址://pypi.python.org/pypi/setuptools#downloads
版本:setuptools-0.6c11.tar.gz(md5)
采用wget方式下载:
wget //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 //pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz#md5=7df2a529a074f613b509fb44feefe74e --18:18:59-- //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) [appliion/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]
原文来自:
本文地址://gulass.cn/python2.7-install.html作者:陶武杰,审核员:苏西云
本文原创地址://gulass.cn/python2-7-install.html编辑:public,审核员:暂无