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
- https://unix.stackexchange.com/questions/291737/zipimport-zipimporterror-cant-decompress-data-zlib-not-available
- https://trendoceans.com/how-to-solve-zipimport-zipimporterror-cant-decompress-data-zlib-not-available/