. Advertisement .
..3..
. Advertisement .
..4..
The error
zipimport.ZipImportError: can't decompress data; zlib not available
occurred when I type in “python3.6 get-pip.py”. I’ve tried to fix it for some days but have not resolved it yet. Can someone suggest a relevant solution to fix the zipimport.zipimporterror: can’t decompress data; zlib not available issue? Much appreciate your support.
The cause: The reason of this cause is due to
zlib
is not set up in your system .Solution:
Ubuntu 20.04, 18.04
You can easily fix this problem by installing
zlib
and its development files:If you don’t install zlib, the next problem that you will have to face up with is openssl, so you had better get that now:
macOS
This is what I believe comes with XCode Tools (or at the very least, I didn’t have Big Sur install it).
It worked for me in RHEL: $YUM install zlib–devel