Mojave使用pyenv安装python-zlib错误

mojave使用pyenv编译python出现 zipimport.ZipImportError: can't decompress data; zlib not available错误

解决方案:

step1: 


sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target  

step2:

pyenv install 3.6.7

原文地址:https://www.cnblogs.com/xiyuan2016/p/10756347.html