昇腾社区首页
中文
注册

环境变量报错提示there are multiple xxx env variable

问题描述

使用本工具进行算子功能调测时失败,提示的报错信息如下:

error: User specified two different cann Installation package path: {PATH_A} and {PATH_B}
error: User specified two different cann Installation package path: {PATH_A} and {PATH_B}
error: User specified two different cann Installation package path: {PATH_A} and {PATH_B}
Please make sure source the correct cann package setenv.bash only. you can open a new window,and restart

可能的原因

重复设置了环境变量。

处理方案

  1. 检查当前运行环境中的环境变量(缺省路径为${INSTALL_DIR}/set_env.sh)是否有重复设置。
  2. 如果有重复,重新打开一个终端窗口,按照环境变量章节设置环境变量。