python3添加对zlib和bz2的支持
在操作系统中安装zlib和bz2相关库
yum install zlib zlib-devel
yum install bzip2 bzip2-devel
重新编译安装python3
tar -jxvf Python-3.3.2.tar.bz2
cd Python-3.3.2
./configure && make && make install
测试在python3中导入zlib
[root@python3_os ~]# python3
Python 3.3.2 (default, Nov 4 2013, 20:12:41)
[GCC 4.4.6 20120305 (Red Hat 4.4.6-4)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import zlib;
>>> import bz2;
>>> quit();
阅读(5179) | 评论(0) | 转发(0) |