python zlib module missing error: RuntimeError: Compression requires the (missing) zlib module

Solution:

# yum install zlib 

# yum install zlib-devel 

 

After the download is successful, enter the directory python2.7 re-execution 

#make 

#make install 

 

Soft previously executed connection at this time still take effect 

Then enter setuptool directory, 

[Root @ localhost setuptools-5.2] # pythonnew setup.py install reinstall

Get.

Guess you like

Origin www.cnblogs.com/Rivend/p/12052368.html