MacBook Pro (M1pro)でM1 Mac環境にPython3をインストールする方法(https://hitori-sekai.com/python/mac-python-install/)を参考にインストールを試みました。Homebrew、pyenvインストール後、
pyenv install 3.7.11
これをターミナルに入力したところ以下のようなエラーが出ました。
python-build: use openssl@1.1 from homebrew
python-build: use readline from homebrew
Downloading Python-3.7.11.tar.xz...
-> https://www.python.org/ftp/python/3.7.11/Python-3.7.11.tar.xz
Installing Python-3.7.11...
python-build: use readline from homebrew
python-build: use zlib from xcode sdk
BUILD FAILED (OS X 12.3 using python-build 20180424)
Inspect or clean up the working tree at /var/folders/bj/ndbp1gds4hv4b94d8k7_n89c0000gn/T/python-build.20220325174035.4876
Results logged to /var/folders/bj/ndbp1gds4hv4b94d8k7_n89c0000gn/T/python-build.20220325174035.4876.log
Last 10 log lines:
checking for --with-cxx-main=<compiler>... no
checking for clang++... no
configure:
By default, distutils will build C++ extension modules with "clang++".
If this is not intended, then set CXX on the configure command line.
checking for the platform triplet based on compiler characteristics... darwin
configure: error: internal configure error for the platform triplet, please file a bug report
make: *** No targets specified and no makefile found. Stop.
プログラミング初学者であり、自分なりに検索してみましたが、解決策を得られませんでした。
どなたか教えてください。
