Python 安装 setuptools Compression requires the (missing) zlib module 的解决方案
2015-07-10 14:45
751 查看
python 安装 setuptools Compression requires the (missing) zlib module 的解决方案
分类: python 2012-11-09 17:58 10870人阅读 评论(4) 收藏 举报creating 'dist/setuptools-0.6c11-py2.7.egg' and adding 'build/bdist.linux-x86_64/egg' to it
Traceback (most recent call last):
File "setup.py", line 94, in <module>
scripts = scripts,
File "/usr/local/lib/python2.7/distutils/core.py", line 152, in setup
dist.run_commands()
File "/usr/local/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/opt/oracle/sor/install/setuptools-0.6c11/setuptools/command/install.py", line 76, in run
self.do_egg_install()
File "/opt/oracle/sor/install/setuptools-0.6c11/setuptools/command/install.py", line 96, in do_egg_install
self.run_command('bdist_egg')
File "/usr/local/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/opt/oracle/sor/install/setuptools-0.6c11/setuptools/command/bdist_egg.py", line 236, in run
dry_run=self.dry_run, mode=self.gen_header())
File "/opt/oracle/sor/install/setuptools-0.6c11/setuptools/command/bdist_egg.py", line 527, in make_zipfile
z = zipfile.ZipFile(zip_filename, mode, compression=compression)
File "/usr/local/lib/python2.7/zipfile.py", line 681, in __init__
"Compression requires the (missing) zlib module"
RuntimeError: Compression requires the (missing) zlib module
#################################################################################################
yum install zlib
yum install zlib-devel
安装完成后,重新编译 python2.7【不需要删除,只需要重新编译,make,安装就行了】
#################################################################################################
然后重新安装setuptools:
cd setuptools-0.6c11
python setup.py install
相关文章推荐
- numpy broadcasting
- UnicodeDecodeError: 'ascii' codec can't decode byte 0xd3 in position 1: ordinal not in range(128)
- Python 中 and 和 or 的有趣现象
- Python使用libsvm的“ImportError: No module named svmutil”问题
- Python学习笔记——list的常用方法
- Python __Underscore__ Methods
- 飘逸的python - 代码即文档docstring
- Python介绍
- python 安装 easy_intall 和 pip python无root权限安装
- Python list使用详解
- Python标准库:内置函数format(value[, format_spec])
- Python验证码识别的方法
- Python实现大文件排序的方法
- Python操作MySQL数据库
- Python实现telnet服务器的方法
- Python读写unicode文件的方法
- Python实现提取谷歌音乐搜索结果的方法
- python和bash统计CPU利用率的方法
- python MySQLdb
- Python多线程下载文件的方法