小编Abd*_*dağ的帖子

如何在 macOS Monterey 上安装不同版本的 Python

我需要运行 python 3.6,但我的 mac 上有 3.9,它正在运行 Monterey。

pyenv install 3.6.9
Run Code Online (Sandbox Code Playgroud)

但我收到这些错误;

python-build: use openssl@1.1 from homebrew
python-build: use readline from homebrew
Downloading Python-3.6.9.tar.xz...
-> https://www.python.org/ftp/python/3.6.9/Python-3.6.9.tar.xz
Installing Python-3.6.9...
python-build: use tcl-tk from homebrew
python-build: use readline from homebrew
python-build: use zlib from xcode sdk

BUILD FAILED (OS X 12.3 using python-build 2.2.5-1-ga157725d)

Inspect or clean up the working tree at /var/folders/k1/jjq8zhm90z5by3s9rgzrr5p40000gn/T/python-build.20220317113524.63390
Results logged to /var/folders/k1/jjq8zhm90z5by3s9rgzrr5p40000gn/T/python-build.20220317113524.63390.log

Last 10 log lines:
checking for --with-cxx-main=<compiler>... no
checking for clang++... no
configure:

  By default, distutils …
Run Code Online (Sandbox Code Playgroud)

python python-3.x pyenv macos-monterey

10
推荐指数
1
解决办法
4394
查看次数

标签 统计

macos-monterey ×1

pyenv ×1

python ×1

python-3.x ×1