安装python时报以下错误
[root@node3 Python-3.6.10]# make -j3 && make install
...
zipimport.ZipImportError: can't decompress data; zlib not available
make: *** [install] 错误 1
根据报错信息提示缺少zlib, 需要先安装
[root@node3 Python-3.6.10]# yum install zlib*
...
已安装:
zlib-ada.x86_64 0:1.4-0.5.20120830CVS.el7 zlib-ada-devel.x86_64 0:1.4-0.5.20120830CVS.el7 zlib-devel.x86_64 0:1.2.7-21.el7_9
zlib-static.x86_64 0:1.2.7-21.el7_9
作为依赖被安装:
dwz.x86_64 0:0.11-3.el7 fedora-gnat-project-common.noarch 0:3.9-1.el7 libgnat.x86_64 0:4.8.5-44.el7
libgnat-devel.x86_64 0:4.8.5-44.el7 libgnat-static.x86_64 0:4.8.5-44.el7 perl-srpm-macros.noarch 0:1-8.el7
redhat-rpm-config.noarch 0:9.1.0-88.el7.centos zip.x86_64 0:3.0-11.el7
完毕!