有没有人在macOS Monterey M1 Mac上安装Python 3.8.10时遇到问题?使用pyenv install
尝试安装的任何版本都会出现以下错误:
python-build: use openssl@1.1 from homebrew python-build: use readline from homebrew Downloading Python-3.8.10.tar.xz... -> https://www.python.org/ftp/python/3.8.10/Python-3.8.10.tar.xz Installing Python-3.8.10... 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/yg/s2w3pfj172v6kdwx7hvmq65m0000gn/T/python-build.20220322155830.88129 Results logged to /var/folders/yg/s2w3pfj172v6kdwx7hvmq65m0000gn/T/python-build.20220322155830.88129.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.
我在谷歌搜索中尝试了几乎所有问题,但都没有成功。我尝试使用 asdf python 插件和 pyenv
进行安装。
pyenv install 3.6.15
) - _macOS Monterey v12.0.1_。 - Vadim