You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Mac M1(Monterey 12.6.1)安装Python 3.6.8失败求助

安装Python 3.6.8到Mac M1(Monterey 12.6.1)的问题

环境与需求

  • 设备:搭载Monterey OS X 12.6.1的Mac M1
  • 已部署工具:pyenv、pyenv-virtualenv,且已成功安装Python 3.6.15
  • 目标:运行一款依赖Python 3.6.8的旧版应用

安装失败的报错信息

执行以下命令安装Python 3.6.8时出现报错:

~ % pyenv install --patch 3.6.8 <<(curl -sSL https://raw.githubusercontent.com/pyenv/pyenv/master/plugins/python-build/share/python-build/patches/3.6.8/Python-3.6.8/0008-bpo-45405-Prevent-internal-configure-error-when-runn.patch?full_index=1)

报错输出:

Error: No available formula with the name "openssl@1.0". Did you mean openssl@1.1 or openssl@3?
Downloading openssl-1.1.0j.tar.gz...
-> https://www.openssl.org/source/old/1.1.0/openssl-1.1.0j.tar.gz
Installing openssl-1.1.0j...
Installed openssl-1.1.0j to /Users/lokesh.raizada/.pyenv/versions/3.6.8

python-build: use readline from homebrew
Downloading Python-3.6.8.tar.xz...
-> https://www.python.org/ftp/python/3.6.8/Python-3.6.8.tar.xz
Installing Python-3.6.8...
patch unexpectedly ends in middle of line
patch: **** Only garbage was found in the patch input.

BUILD FAILED (OS X 12.6.1 using python-build 20180424)

Inspect or clean up the working tree at /var/folders/41/4c6czpkx6c18sfcfj0lzjkd00000gq/T/python-build.20230127152902.5735
Results logged to /var/folders/41/4c6czpkx6c18sfcfj0lzjkd00000gq/T/python-build.20230127152902.5735.log

Last 10 log lines:
/Users/lokesh.raizada/.pyenv/versions/3.6.8/openssl/share/doc/openssl/html/man3/X509_REVOKED_get_ext.html -> /Users/lokesh.raizada/.pyenv/versions/3.6.8/openssl/share/doc/openssl/html/man3/X509v3_get_ext_by_NID.html
/Users/lokesh.raizada/.pyenv/versions/3.6.8/openssl/share/doc/openssl/html/man3/X509_REVOKED_get_ext_by_NID.html -> /Users/lokesh.raizada/.pyenv/versions/3.6.8/openssl/share/doc/openssl/html/man3/X509v3_get_ext_by_NID.html
/Users/lokesh.raizada/.pyenv/versions/3.6.8/openssl/share/doc/openssl/html/man3/X509_REVOKED_get_ext_by_OBJ.html -> /Users/lokesh.raizada/.pyenv/versions/3.6.8/openssl/share/doc/openssl/html/man3/X509v3_get_ext_by_NID.html
/Users/lokesh.raizada/.pyenv/versions/3.6.8/openssl/share/doc/openssl/html/man3/X509_REVOKED_get_ext_by_critical.html -> /Users/lokesh.raizada/.pyenv/versions/3.6.8/openssl/share/doc/openssl/html/man3/X509v3_get_ext_by_NID.html
/Users/lokesh.raizada/.pyenv/versions/3.6.8/openssl/share/doc/openssl/html/man3/X509_REVOKED_delete_ext.html -> /Users/lokesh.raizada/.pyenv/versions/3.6.8/openssl/share/doc/openssl/html/man3/X509v3_get_ext_by_NID.html
/Users/lokesh.raizada/.pyenv/versions/3.6.8/openssl/share/doc/openssl/html/man3/X509_REVOKED_add_ext.html -> /Users/lokesh.raizada/.pyenv/versions/3.6.8/openssl/share/doc/openssl/html/man3/X509v3_get_ext_by_NID.html
/var/folders/41/4c6czpkx6c18sfcfj0lzjkd00000gq/T/python-build.20230127152902.5735 ~
~
/var/folders/41/4c6czpkx6c18sfcfj0lzjkd00000gq/T/python-build.20230127152902.5735 ~
/var/folders/41/4c6czpkx6c18sfcfj0lzjkd00000gq/T/python-build.20230127152902.5735/Python-3.6.8 /var/folders/41/4c6czpkx6c18sfcfj0lzjkd00000gq/T/python-build.20230127152902.5735 

尝试过的方法

已找到适配Python 3.6.15的安装补丁方案,但用同样方式尝试安装Python 3.6.8时失败。

问题

是否有适配Mac M1(Monterey 12.6.1)环境的Python 3.6.8补丁?


内容的提问来源于stack exchange,提问作者AlwaysLearning

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.02 18:11:10