

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 先决条件
<a name="defer-component-updates-tutorial-prerequisites"></a>

要完成本教程，您需要：
+ Amazon Web Services 账户。如果没有，请参阅[设置一个 Amazon Web Services 账户](setting-up.md#set-up-aws-account)。
+ 具有管理员权限的 Amazon Identity and Access Management（IAM）用户。
+ 支持互联网连接的 Greengrass 核心设备。有关如何设置核心设备的更多信息，请参阅[设置 Amazon IoT Greengrass 核心设备](setting-up.md)。
  + [Python](https://www.python.org/downloads/) 3.6 或更高版本已为所有用户安装在核心设备上，并已添加到 `PATH` 环境变量中。在 Windows 上，您还必须为所有用户安装适用于 Windows 的 Python 启动程序。
**重要**  <a name="windows-core-device-python-installation"></a>
在 Windows 中，默认情况下不会为所有用户安装 Python。安装 Python 时，您必须自定义安装以对其进行配置，以便 Amazon IoT Greengrass 软件运行 Python 脚本。例如，如果您使用图形化 Python 安装程序，则执行以下操作：  
选择**为所有用户安装启动程序（推荐）**。
选择 **Customize installation**。
选择 **Next**。
选择 **Install for all users**。
选择 **Add Python to environment variables**。
选择**安装**。
有关更多信息，请参阅 [Python 3 文档](https://docs.python.org/3/using/windows.html)中的*在 Windows 上使用 Python*。
+ 支持互联网连接的 Windows、macOS 或类 Unix 的开发计算机。
  + 开发计算机上已安装 [Python 3.6](https://www.python.org/downloads/) 或更高版本。
  + 开发计算机上已安装 [Git](https://git-scm.com/)。
  + <a name="development-component-aws-cli-prerequisite"></a>开发计算机上已安装Amazon Command Line Interface（Amazon CLI）并使用凭证进行配置。有关更多信息，请参阅《Amazon Command Line Interface 用户指南》中的[安装、更新和卸载 Amazon CLI](https://docs.amazonaws.cn/cli/latest/userguide/cli-chap-install.html) 以及[配置 Amazon CLI](https://docs.amazonaws.cn/cli/latest/userguide/cli-chap-configure.html)。**
**注意**  
如果您使用 Raspberry Pi 或其他 32 位 ARM 设备，请安装 Amazon CLI V1。Amazon CLIV2 不适用于 32 位 ARM 设备。有关更多信息，请参阅[安装、更新和卸载 Amazon CLI 版本 1](https://docs.amazonaws.cn/cli/latest/userguide/install-cliv1.html)。