rhel6从源码安装python及其他软件包

rhel6从源码安装python及其他软件包

## get zlib-devel source and build install it

$ wget –no-check-certificate http://zlib.net/zlib-1.2.8.tar.gz$ tar -zxf zlib-1.2.8.tar.gz$ cd zlib-1.2.8$ ./configure$ make && make install#### /usr/local/include/zlib.h zconf.h

## python—>zlib-devel## get python source and build install it$ wget –no-check-certificate https://www.python.org/ftp/python/2.7.9/python-2.7.9.tgz$ tar -zxf python-2.7.9.tgz$ cd python-2.7.9$ ./configure -–with-zlib=/usr/local/include$ make && make install## test:$ python>>> import zlib

## python-setuptools$ wget –no-check-certificate https://pypi.python.org/packages/source/s/setuptools/setuptools-15.0.tar.gz#md5=2a6b2901b6c265d682139345849cbf03$ tar -zxf setuptools-15.0.tar.gz$ cd setuptools-15.0$ python setup.py build$ python setup.py install

## markupsafe$ wget –no-check-certificate https://pypi.python.org/packages/source/m/markupsafe/markupsafe-0.23.tar.gz$ tar -zxf markupsafe-0.23.tar.gz$ cd markupsafe-0.23$ python setup.py build$ python setup.py install

## jinja2=>markupsafe#### $ git clone https://github.com/mitsuhiko/jinja2.git####$ wget –no-check-certificate https://pypi.python.org/packages/source/j/jinja2/jinja2-2.7.3.tar.gz$ wget –no-check-certificate https://pypi.python.org/packages/source/j/jinja2/jinja2-2.0.tar.gz$ tar -zxf jinja2-2.7.3.tar.gz$ cd jinja2-2.7.3$ python setup.py build$ python setup.py install

## libyaml$ wget –no-check-certificate http://pyyaml.org/download/libyaml/yaml-0.1.5.tar.gz$ tar -zxf yaml-0.1.5.tar.gz$ cd yaml-0.1.5$ ./configure$ make && make install### /usr/local/include/yaml.h

## pyyaml—>libyaml$ wget –no-check-certificate https://pypi.python.org/packages/source/p/pyyaml/pyyaml-3.11.tar.gz#md5=f50e08ef0fe55178479d3a618efe21db$ tar -zxf pyyaml-3.11.tar.gz$ cd pyyaml-3.11$ python setup.py build$ python setup.py install#### test$ python>>> import yaml

————————————–分割线 ————————————–

centos上源码安装python3.4 http://www.linuxidc.com/linux/2015-01/111870.htm

《python核心编程 第二版》.(wesley j. chun ).[高清pdf中文版] http://www.linuxidc.com/linux/2013-06/85425.htm

《python开发技术详解》.( 周伟,宗杰).[高清pdf扫描版+随书视频+代码] http://www.linuxidc.com/linux/2013-11/92693.htm

python脚本获取linux系统信息 http://www.linuxidc.com/linux/2013-08/88531.htm

在ubuntu下用python搭建桌面算法交易研究环境 http://www.linuxidc.com/linux/2013-11/92534.htm

python 语言的发展简史 http://www.linuxidc.com/linux/2014-09/107206.htm

python 的详细介绍:请点这里python 的下载地址:请点这里

本文永久更新链接地址:http://www.linuxidc.com/linux/2015-04/116401.htm