環境:
centos 7.4 + pyenv + python3.6.6
在安裝Python 3.6.6 時報錯:zipimport.ZipImportError: can't decompress data; zlib not available
處理方法
安裝依賴組件
yum install zlib zlib-devel
我的環境中缺少 zlib-devel 安裝完,重新安裝Python,一切順利
資料來源:http://www.laozuo.org/10825.html