---
title: 环境准备
description: "1. 请参考《CANN 软件安装(https://www.hiascend.com/document/detail/zh/canncommercial/900/softwareinst/instg/instg_0000.html)》完成驱动、固件以及CANN Toolkit开发套件包和ops算子包的安装，部署开发环境和运行环境。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/devaids/aoe/aoeep_16_042.html
sourcePath: /source/zh/canncommercial/900/devaids/aoe/aoeep_16_042.html
indexId: 72fec9fee601cab1e3889d5b7f0872daa101ffc82f60f6d201d37279bd64a12259
---
# 环境准备

1. 请参考《CANN 软件安装(https://www.hiascend.com/document/detail/zh/canncommercial/900/softwareinst/instg/instg_0000.html)》完成驱动、固件以及CANN Toolkit开发套件包和ops算子包的安装，部署开发环境和运行环境。
2. 请参考《Ascend Extension for PyTorch 软件安装指南(https://www.hiascend.com/document/detail/zh/Pytorch/2600/configandinstg/instg/docs/zh/installation_guide/installation_description.md)》安装PyTorch训练相关软件。
3. 安装第三方依赖。
  环境部署完成后，需要参见表1安装依赖的第三方软件。

**表1 AOE依赖软件**

| 需要安装的第三方软件 | 用途 | 如何安装 |
| --- | --- | --- |
| pciutils工具 | AOE工具的调优使用lspci命令获取昇腾AI处理器所在硬件设备，所以需要在执行AOE工具的环境中安装pciutils工具。 | 例如： Ubuntu操作系统：sudo apt\-get install pciutils openEuler操作系统：sudo yum install pciutils 若您是其他操作系统，请根据实际情况替换安装命令。 |
