我有一个配置为与Rosetta一起运行的iTerm实例,使用homebrew (x86版本)和pyenv (x86版本),但当我尝试运行pyenv86 install 3.7.3
时,我仍然得到以下内容:
BUILD FAILED (OS X 13.0.1 using python-build 20180424)
更具体地说,在日志中:
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.
我有以下设置:
$ arch
i386
$ which brew86
brew86: aliased to arch --x86_64 /usr/local/Homebrew/bin/brew
$ which pyenv86
pyenv86: aliased to arch -x86_64 pyenv
$ echo $PATH
/opt/homebrew/bin:/Users/abhinavmulagada/.pyenv/shims:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin
这是我的~/.zshrc
的样子:
# rosetta setup
if [ $(arch) = "i386" ]; then
alias brew86='arch --x86_64 /usr/local/Homebrew/bin/brew'
alias pyenv86="arch -x86_64 pyenv"
fi
# pyenv
if command -v pyenv 1>/dev/null 2>&1; then
eval "$(pyenv init -)"
fi
path=('/opt/homebrew/bin' $path)
export PATH
任何建议都将是非常感激的,被困在这个一段时间。
谢谢!
结果是python 3.7.3与OS X 13.0.1不兼容。我能使用的最新版本是3.7.10