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

后端 未结 3 612
南方客
南方客 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:48

    I needed an extra step to get it running on Mojave 10.14.05, Python 3.7. First:

    export PATH="$PATH:/Library/Frameworks/Python.framework/Versions/3.6/bin"
    

    then

    sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
    

    see this post.

提交回复
热议问题