Skip to content

[Solved][Linux] Python Installation Error: zipimport.ZipImportError: can't decompress data

Last Updated on 2021-10-25 by Clay

Today when I installing a specific Python version on Linux, I encountered the following error message:

zipimport.ZipImportError: can't decompress data


After searching on the Internet, I know it because to lack of zlib dependencies.


Solution

The dependencies lack problem it very easy to solve in Linux system, just install the dependencies that you lacked.

sudo apt install zlib*


After installation, you can try make && make install command again.


References


Read More

Leave a Reply