pyenv安装python3.8时,错误:依赖Xcode中的zlib找不到
zipimport.ZipImportError: can't decompress data; zlib not available
解决办法
CFLAGS="-I$(brew --prefix openssl)/include -I$(brew --prefix readline)/include -I$(xcrun --show-sdk-path)/usr/include" LDFLAGS="-L$(brew --prefix openssl)/lib -L$(brew --prefix readline)/lib -L$(xcrun --show-sdk-path)/usr/lib" pyenv install 3.8.5