Ubuntu python Compression requires the (missing) zlib module

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.