在RHEL 6.6上,我从源代码安装了Python 3.5.1。我正在尝试通过get-pip.py安装pip3,但是我得到了
Traceback (most recent call last):
File "get-pip.py", line 19177, in <module>
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
它适用于已安装的Python 2.6.6。我已经在网上寻找答案,但是似乎找不到适合我的答案。
编辑: yum search zlib
jzlib.i686 : JZlib re-implementation of zlib in pure Java
perl-Compress-Raw-Zlib.i686 : Low-Level Interface to the zlib compression library
perl-Compress-Zlib.i686 : A module providing Perl interfaces to the zlib compression library
perl-IO-Zlib.i686 : Perl IO:: style interface to Compress::Zlib
zlib.i686 : The zlib compression and decompression library
zlib-debuginfo.i686 : Debug information for package zlib
zlib-devel.i686 : Header files and libraries for Zlib development
perl-IO-Compress-Zlib.i686 : Perl interface to allow reading and writing of gzip and zip data
Name and summary matches only, use "search all" for everything.
zlib
包裹吗?
python3 get-pip.py
试图显示上面的错误消息,但它适用于python get-pip.py
。是的,我可以跑步yum search zlib
。