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

posted @ 2019-04-23 14:41  蒋励  阅读(304)  评论(0编辑  收藏  举报