pyenv 1.2 et macos

SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk MACOSX_DEPLOYMENT_TARGET=10.14 PYTHON_CONFIGURE_OPTS="--enable-framework" pyenv install (version)

Source : https://github.com/pyenv/pyenv/issues/1348#issuecomment-511016634