安装 setuptools 的时候,报如下错误:

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

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 && make installl 安装就行了

然后重新安装setuptools:

cd setuptools-0.6c11

python setup.py install

python zlib module_python 安装 setuptools Compression requires the (missing) zlib module 的解决方案...相关推荐

  1. python 安装 setuptools Compression requires the (missing) zlib module 的解决方案

    背景: 虚拟机centos下安装python辅助工具 setuptools报错,错误信息大概如下: Java代码   Traceback (most recent call last): File & ...

  2. python 安装setuptools时报Compression requires the (missing) zlib module错误的解决方案

    背景: 虚拟机centos下安装python辅助工具 setuptools报错,错误信息大概如下: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 ...

  3. python 升级setuptools_yum安装setuptools linux环境python安装setuptools的必要条件 - Linux - 服务器之家...

    yum安装setuptools linux环境python安装setuptools的必要条件 发布时间:2017-04-03 来源:服务器之家 linux环境python安装setuptools(使用 ...

  4. python numpy库安装winerror5_pip报“PermissionError: [WinError 5] 拒绝访问。”解决方案

    今天安装spacy这个NLP工具,使用环境是anaconda3,默认安装在C盘了.结果使用pip安装Spacy,出现如下提示:Exception: Traceback (most recent cal ...

  5. python 升级setuptools_linux 安装/升级 python3+setuptools+pip

    在windows上安装python是很简单的,运行一下官方的安装包,什么都帮你搞好了. 而在linux上安装python就麻烦点(可能有更好的方法吧) 另外一般Linux会自带python2,不建议卸 ...

  6. python3安装setuptools步骤_linux环境下的python安装过程(含setuptools)

    这里我不想采用诸如ubuntu下的apt-get install方式进行python的安装,而是在linux下采用源码包的方式进行python的安装. 一.下载python源码包 打开ubuntu下的 ...

  7. python怎么更新setuptools_linux 升级python2.7 安装setuptools

    linux为redhat4,系统默认安装了python2.6,需要执行的python脚本内容包含标准库之xml.etree.ElementTree  用到库里的一个iter方法是python2.7的新 ...

  8. linux下载哪个python版本-Linux安装python3.6

    如果本机安装了python2,尽量不要管他,使用python3运行python脚本就好,因为可能有程序依赖目前的python2环境, 比如yum!!!!! 不要动现有的python2环境! 一.安装p ...

  9. Python环境的安装

    参考官方文档 http://www.runoob.com/python/python-install.html Python已经被移植在许多平台上(经过改动使它能够工作在不同平台上). 您需要下载适用 ...

最新文章

  1. python生成epub文件_python在内存中生成Zip文件!
  2. 5.QT5中的connect的实现
  3. UITextView 用法小结
  4. 10000字超全Redis面试题,再也不怕被问住了!
  5. jenkins安装(1)
  6. python设计模式6-适配器模式
  7. Mysql : InnoDB: Table flags are 0 in the data dictionary but the flags in file ./ibdata1 are 0x4800!
  8. 浏览器本地存储(cookie、sessionStorage和localStorage)
  9. 8.在第7步的基础上为我们的程序添加负载均衡支持
  10. 【渝粤教育】国家开放大学2018年春季 3717-22T天然气管道长输技术 参考试题
  11. Centos硬盘IO性能检测命令iostat[转]
  12. 怎么从php文件中查找代码,php类在文件中查找类文件,但不查找类
  13. win10如何在当前目录打开cmd窗口
  14. 【渝粤题库】广东开放大学 综合英语1 形成性考核
  15. Coodeforces 585D Lizard Era: Beginning (折半搜索)
  16. 使用ssh工具登录亚马逊云服务器
  17. 3d打开无法下载star.php,下载的3dmax模型打开失败的原因及解决方法
  18. 【ospf-vlink虚拟连接】
  19. BZOJ4768: 2555加强版之wxh loves substring
  20. 麒麟 android os,国内不再需要安卓系统? 麒麟OS摆脱依赖

热门文章

  1. 抖音申请企业蓝v认证的流程是怎样的?
  2. selenium元素等待及滚动条滚动
  3. activiti官网实例项目activiti-explorer之扩展流程节点属性
  4. 最小生成树:Kruskal算法 和 Prim算法(第23章)
  5. HDOJ 2072 单词数
  6. python cookbook 学习笔记 -- 1.5 去除字符串两端空格
  7. [转]WF事件驱动(4) -持久化
  8. document.execCommand() 解析
  9. ubuntu 12.04 ubuntu System program problem detected 解决方法
  10. 【报告分享】2021全球10大金融科技趋势-蚂蚁集团.pdf(附下载链接)