Python3安装:zipimport.ZipImportError: can't decompress data; zlib not available

最近更新时间 2020-01-04 12:30:39

在Centos7下源码编译安装Python3.8,make altinstall时报错误:

zipimport.ZipImportError: can't decompress data; zlib not available

如下所示:

  File "", line 241, in load_module
  File "", line 709, in _get_module_code
  File "", line 570, in _get_data
zipimport.ZipImportError: can't decompress data; zlib not available
make: *** [altinstall] Error 1

缺少zlib-devel包,安装zlib-devel包:

yum install zlib-devel

安装成功后重新执行 make altinstall命令。

可能喜欢
最近浏览
正在加载浏览记录