docs: Update CN translation for linux-macos-setup.rst

This commit is contained in:
Shen Mengjing
2025-08-01 14:39:42 +08:00
parent 300ff9fc78
commit cbd1ede64c
2 changed files with 14 additions and 16 deletions

View File

@@ -104,13 +104,13 @@ Note that most of the recent versions of macOS include Python 3.9 (or older) by
To install supported Python 3 on macOS: To install supported Python 3 on macOS:
- With HomeBrew_, run:: - With HomeBrew_, run::
brew install python3 brew install python3
- With MacPorts_, run:: - With MacPorts_, run::
sudo port install python313 sudo port install python313
.. note:: .. note::

View File

@@ -96,27 +96,25 @@ Apple M1 用户
安装 Python 3 安装 Python 3
--------------------------------------------- ~~~~~~~~~~~~~~
`Catalina 10.15 发布说明`_ 中表示不推荐使用 Python 2.7 版本,在未来的 macOS 版本中也不会默认包含 Python 2.7。执行以下命令来检查当前使用的 Python 版本:: 请确保已安装 Python 3.10ESP-IDF 支持的最低版本)或更高版本。
python --version 请注意,大多数新版 macOS 默认仅包含 Python 3.9(或更低版本),这些版本已不再受支持,请安装 Python 3.10 或更高版本。
如果输出结果是 ``Python 2.7.17``,则代表默认解析器是 Python 2.7。这时需要运行以下命令检查电脑上是否已经安装过 Python 3:: 请根据以下步骤在 macOS 中安装受支持的 Python 3
python3 --version - 若使用 HomeBrew_请运行::
如果运行上述命令出现错误,则代表电脑上没有安装 Python 3。 brew install python3
请根据以下步骤安装 Python 3 - 若使用 MacPorts_请运行::
- 使用 HomeBrew_ 进行安装的方法如下:: sudo port install python313
brew install python3 .. note::
- 使用 MacPorts_ 进行安装的方法如下:: 安装过程中,安装脚本会检查系统中已安装的 Python 版本,并选择满足最低要求的最旧版本。
sudo port install python38
.. _get-started-get-esp-idf: .. _get-started-get-esp-idf: