---
title: msaicerr工具环境准备
description: "已在CANN运行环境上安装Toolkit软件包。详细安装请参见《CANN 软件安装(https://www.hiascend.com/document/detail/zh/canncommercial/900/softwareinst/instg/instg_0000.html)》。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/maintenref/troubleshooting/troubleshooting_0535.html
sourcePath: /source/zh/canncommercial/900/maintenref/troubleshooting/troubleshooting_0535.html
indexId: 279a229c8c9e1d98aba00dc6d690ddee482d04c450ae3bb41cf1aeb31bc0076782
---
# msaicerr工具环境准备

已在CANN运行环境上安装Toolkit软件包。详细安装请参见《CANN 软件安装(https://www.hiascend.com/document/detail/zh/canncommercial/900/softwareinst/instg/instg_0000.html)》。

安装CANN软件后，使用CANN运行用户进行编译、运行时，需要以CANN运行用户登录环境，执行source ${INSTALL_DIR}/set_env.sh命令设置环境变量。${INSTALL_DIR}请替换为CANN软件安装后文件存储路径。以root用户安装为例，安装后文件默认存储路径为：/usr/local/Ascend/cann。

使用msaicerr工具前，需先进入到msaicerr.py脚本所在的目录“${install_path}/tools/msaicerr”。
