How can I install zlib on Mac OS X Mojave (10.14)?

后端 未结 3 596
南方客
南方客 2021-02-02 12:30

I recently upgraded from Sierra to Mojave. After that I tried to use pyenv install 3.5.6. This uses homebrew in the background to try to install python, which fails

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-02 12:43

    It helped me as well, answer is here: https://github.com/Homebrew/homebrew-core/issues/29176 More details, this works:

    1. brew update

    2. (Re)Install CLT.

      installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
      
    3. brew reinstall python@2

提交回复
热议问题