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:
@@ -96,27 +96,25 @@ Apple M1 用户
|
||||
|
||||
|
||||
安装 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
|
||||
|
||||
如果运行上述命令出现错误,则代表电脑上没有安装 Python 3。
|
||||
|
||||
请根据以下步骤安装 Python 3:
|
||||
|
||||
- 使用 HomeBrew_ 进行安装的方法如下::
|
||||
- 若使用 HomeBrew_,请运行::
|
||||
|
||||
brew install python3
|
||||
|
||||
- 使用 MacPorts_ 进行安装的方法如下::
|
||||
- 若使用 MacPorts_,请运行::
|
||||
|
||||
sudo port install python38
|
||||
sudo port install python313
|
||||
|
||||
.. note::
|
||||
|
||||
安装过程中,安装脚本会检查系统中已安装的 Python 版本,并选择满足最低要求的最旧版本。
|
||||
|
||||
.. _get-started-get-esp-idf:
|
||||
|
||||
|
Reference in New Issue
Block a user