您现在可以在 Mac M1 (Apple Silicon) 上本地安装 Python 3.9.4。我正在使用 pyenv 安装 Python 3.7、3.8 和 3.9 所有原生 ARM。例如,要安装 3.9.4:
$ pyenv install 3.9.4
python-build: use openssl@1.1 from homebrew
python-build: use readline from homebrew
Downloading Python-3.9.4.tar.xz...
-> https://www.python.org/ftp/python/3.9.4/Python-3.9.4.tar.xz
Installing Python-3.9.4...
python-build: use readline from homebrew
python-build: use zlib from xcode sdk
Installed Python-3.9.4 to /Users/squademy/.pyenv/versions/3.9.4
有关安装 pyenv 和多个 Python 版本的完整指南,您可以阅读这篇文章:https ://squademy.medium.com/install-python-on-macos-11-m1-apple-silicon-using-pyenv-12e0729427a9 。