cann-operator-env-config

Install and configure the CANN toolkit on Ascend NPU hardware.

31|1|Updated Mar 28, 2026
One-click install
npx skills add https://github.com/Ascend/agent-skills --skill cann-operator-env-config
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cann-operator-env-config
Source: https://github.com/Ascend/agent-skills/tree/main/skills/cann-operator-env-config
Command: npx skills add https://github.com/Ascend/agent-skills --skill cann-operator-env-config

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

本技能提供在昇腾 NPU 平台上安装 CANN、配置运行环境以及排查常见问题的完整指南,帮助用户快速建立可用的开发环境。

Core Features & Use Cases

  • 一键环境检查与依赖验证:确认驱动、Python、pip 等基础组件是否就绪。
  • 分离离线/在线安装流程:提供离线安装包的步骤以及在线安装替代方案,适用于无网络和可控网络环境。
  • 环境配置与验证:包含环境变量设置、运行时依赖安装,以及基本功能检测的执行方法。
  • Use Case: 用户在部署昇腾 NPU 开发工作流时,通过该 Skill 完成从驱动到 CANN 的完整安装链路。

Quick Start

在当前工作目录执行 Skill 提供的安装准备与执行流程,确保 Ascend 设备正确被识别后开始 CANN 安装。

Frequently Asked Questions about cann-operator-env-config

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I install the CANN toolkit on Ascend NPU hardware for development?

To install the CANN toolkit on Ascend NPU hardware, you can use either offline installation packages or online installation alternatives. The process includes verifying prerequisites, executing the installation, and setting up environment variables to enable development workflows.

What prerequisites do I need to verify before setting up the CANN environment on an Ascend NPU?

Before setting up the CANN environment, you must verify that the Ascend device is correctly recognized and confirm that base dependencies like drivers, Python, and pip are ready. This environment check ensures a reliable foundation for the CANN installation.

Can I install CANN offline on an Ascend NPU without a network connection?

Yes, you can install CANN offline on an Ascend NPU without a network connection. The installation guide provides specific offline installation package steps tailored for environments lacking internet access, alongside online alternatives for controlled networks.

How do I validate my CANN installation and NPU environment setup?

To validate your CANN installation and NPU environment setup, you execute specific verification commands provided after configuring the runtime dependencies and environment variables. These basic functionality checks confirm the CANN environment operates reliably.

Why is my Ascend NPU not recognized during the CANN environment setup process?

If your Ascend NPU is not recognized during CANN setup, the base driver dependencies may not be ready. You must execute an environment check to confirm driver readiness and ensure the Ascend device is properly detected before starting installation.

What is the best way to configure CANN environment variables after installing the toolkit on Ascend NPU?

The best way to configure CANN environment variables after installing the toolkit is to follow the setup steps specified for the Ascend NPU platform. Proper environment configuration ensures runtime dependencies are resolved and development workflows function correctly.