env PYTHON_CONFIGURE_OPTS="--enable-framework" pyenv install 3.11.6
pyrnv global 3.11.6
ところが、M2 MacBookAirだと、
BUILD FAILED (OS X 14.0 using python-build 20180424)
Inspect or clean up the working tree at /var/folders/2n/686k3ct525l7kkqnxrskbs8m0000gn/T/python-build.20231024173648.77447
Results logged to /var/folders/2n/686k3ct525l7kkqnxrskbs8m0000gn/T/python-build.20231024173648.77447.log
Last 10 log lines:
__locale_localeconv in _localemodule.o
__locale_localeconv in _localemodule.o
__locale_localeconv in _localemodule.o
__locale_localeconv in _localemodule.o
_libintl_textdomain, referenced from:
__locale_textdomain in _localemodule.o
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Programs/_freeze_module] Error 1
make: *** Waiting for unfinished jobs....
2 warnings generated.
で失敗する。う〜む、やっぱりApple Siliconは微妙だな〜。