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

分手后的思念是犯贱 2022-03-30 15:46 542阅读 0赞

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

参考这里,详细如下:

  • 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

发表评论

表情:
评论列表 (有 0 条评论,542人围观)

还没有评论,来说两句吧...

相关阅读