Mac使用pyenv安装Python出现The Python zlib extension was not compiled. Missing the zlib错误

Mac使用pyenv安装Python出现The Python zlib extension was not compiled. Missing the zlib错误

原文地址:https://www.cnblogs.com/wswang/p/7718063.html

参考这里,详细如下:

On Mac OS X 10.9, 10.10 and 10.11 you may need to set the CFLAGS environment variable when installing a new version in order for configure to find the zlib headers (XCode command line tools must be installed first):

CFLAGS="-I$(xcrun --show-sdk-path)/usr/include" pyenv install -v 2.7.7

Alternatively, try reinstalling XCode command line tools for your OS (especially if you just upgraded your OS)

xcode-select --install

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容