Describe:
Compression requires the (missing) zlib module appears when installing Setuptools in Ubuntu
Workaround steps:
①ubuntu install zlib: Download zlib Click, download link in zlib_1.2.11.dfsg.orig.tar.xz
Unzip after download, open the terminal in the extracted file
$./configure
$ make
$ sudo make install
After all is done, you will find that you install Setuptools again, still appear Compression requires the (missing) zlib module, then look at the second step.
② to resolve a problem that zlib module lacks, you must install the Zlib1g-dev package before installing python2.7.x, reinstall python2.7.x after installation, and then run the sudo python2.7 setup.py install.
This means that after you complete step ①, you will have to reinstall Python to really solve the problem. (Refer to the article Python installation process in Linux environments)
③ install Setuptools again, the above problem will not occur, the installation is successful.
Ubuntu python Compression requires the (missing) zlib module