mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-03 18:40:59 +02:00
docs: Update CN translation for linux-macos-setup.rst
This commit is contained in:
@@ -104,11 +104,11 @@ 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
|
||||||
|
|
||||||
|
@@ -96,27 +96,25 @@ Apple M1 用户
|
|||||||
|
|
||||||
|
|
||||||
安装 Python 3
|
安装 Python 3
|
||||||
---------------------------------------------
|
~~~~~~~~~~~~~~
|
||||||
|
|
||||||
`Catalina 10.15 发布说明`_ 中表示不推荐使用 Python 2.7 版本,在未来的 macOS 版本中也不会默认包含 Python 2.7。执行以下命令来检查当前使用的 Python 版本::
|
请确保已安装 Python 3.10(ESP-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。
|
|
||||||
|
|
||||||
请根据以下步骤安装 Python 3:
|
|
||||||
|
|
||||||
- 使用 HomeBrew_ 进行安装的方法如下::
|
|
||||||
|
|
||||||
brew install python3
|
brew install python3
|
||||||
|
|
||||||
- 使用 MacPorts_ 进行安装的方法如下::
|
- 若使用 MacPorts_,请运行::
|
||||||
|
|
||||||
sudo port install python38
|
sudo port install python313
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
安装过程中,安装脚本会检查系统中已安装的 Python 版本,并选择满足最低要求的最旧版本。
|
||||||
|
|
||||||
.. _get-started-get-esp-idf:
|
.. _get-started-get-esp-idf:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user