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

相关文章:

  • 2022-12-23
  • 2022-02-03
  • 2021-06-29
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-21
  • 2021-11-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案