centos6.4 python beautifulsoup安装
来源:互联网 发布:ssr软件 编辑:程序博客网 时间:2024/06/10 00:18
centos6.4默认安装的python版本为2.6,但是beautifulsoup4 与python2.6兼容的不好,因此需要把python升级到python2.7才行。
下面介绍centos6.4中python升级为2.7的过程
python升级
首先需要安装的一些包yum groupinstall "Development tools"
yum install zlib zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel
安装python27:
官网http://www.python.org/download/下载Python 2.7.5 bzipped source tarball (for Linux, Unix or Mac OS X, more compressed)
下载Python-2.7.5.tar.bz2后,root权限解压,执行
[root@lydcentos Python-2.7.5]# ./configure --prefix=/usr/local[root@lydcentos Python-2.7.5]# make && make altinstall
安装 Distribute
从https://pypi.python.org/pypi/distribute下载distribute-0.6.35.tar.gz,root权限解压,执行[root@lydcentos distribute-0.6.35]# python2.7 setup.py install
This generates the script /usr/local/bin/easy_install-2.7 that you use to install packages for Python 2.7. It puts your packages in /usr/local/lib/python2.7/site-packages/安装beautifulsoup:
官网http://www.crummy.com/software/BeautifulSoup/#Download下载beautifulsoup4-4.3.0.tar.gz,root权限解压,执行[root@lydcentos beautifulsoup4-4.3.0]# python2.7 setup.py install
安装完后会提示Writing /usr/local/lib/python2.7/site-packages/beautifulsoup4-4.3.0-py2.7.egg-info
#转载于:http://blog.csdn.net/lydyangliu/article/details/14225391
0 0
- centos6.4 python beautifulsoup安装
- centos6.4 python beautifulsoup安装
- python BeautifulSoup 安装
- python BeautifulSoup 安装
- python BeautifulSoup的安装
- 安装python BeautifulSoup插件
- Python 安装 BeautifulSoup(Win7)
- python中用beautifulSoup 安装
- python 安装Beautifulsoup
- python安装beautifulsoup
- python BeautifulSoup 安装教程
- python中用beautifulSoup 安装
- python BeautifulSoup 库安装
- Python 3 安装 BeautifulSoup
- python安装BeautifulSoup
- Python的BeautifulSoup安装
- python-BeautifulSoup下载安装
- python安装beautifulSoup
- 博客搬至博客园
- 八款你不得不知的开源前端JS框架
- Linux 下串口USB等设备通信编程入门2
- 新人报道下
- Android 零碎知识点汇总
- centos6.4 python beautifulsoup安装
- CocosEditor-java onContactBegin无反应
- RegexQuery正则表达式源代码
- ‘close’ was not declared in this scope
- 委托和事件的区别
- 问,LINUX AS 6能对一个LV进行动态的增加空间吗?
- GCC源码分析(3):Tree-SSA优化框架
- 虚拟现实技术实现理论之梦境论述
- 软件质量之道:PCLint之一