When I tried to run this python but encountered the following error.
# python
get-pip.py
Traceback (most
recent call last):
File "get-pip.py", line 20061, in
main()
File "get-pip.py", line 194, in
main
bootstrap(tmpdir=tmpdir)
File "get-pip.py", line 82, in
bootstrap
import pip
zipimport.ZipImportError:
can't decompress data; zlib not available
ENV: Python 3.5.2 + CentOS 7.4
Resolution:
#
yum -y install zlib*
#
rpm -qa |grep -i zlib
zlib-1.2.7-17.el7.i686
zlib-static-1.2.7-17.el7.x86_64
zlib-1.2.7-17.el7.x86_64
perl-Compress-Raw-Zlib-2.061-4.el7.x86_64
zlib-devel-1.2.7-17.el7.x86_64
vi /Modules/Setup
#
Andrew Kuchling's zlib module.
#
This require zlib 1.1.3 (or later).
zlib
zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz
# make & make install
No comments:
Post a Comment