The root cause was Xcode us MacOS10.15.sdk in 10.14.6.
Therefore, we can indicated SDKROOT to MacOSX10.15.sdk to install python 3.9-dev
please make sure clean up the python that claims in build failed log
Inspect or clean up the working tree at /var/folders/v5/_wxtsm_x74jg_nxv85hxy4jm0000gn/T/python-build.20211010100918.11807
SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk MACOSX_DEPLOYMENT_TARGET=10.14 PYTHON_CONFIGURE_OPTS="--enable-framework" pyenv install 3.9-dev
- If you need to donwload 10.14 SDK, you can get it from below link https://github.com/phracker/MacOSX-SDKs/releases
沒有留言:
張貼留言