Quick Installation FAQ

CANN Quick Installation provides the procedures for installing the driver, Toolkit, and ops package, as well as verifying the installation, helping you quickly deploy CANN.

In the CANN Quick Installation Guide, a stable version offers complete key functions and high stability, while a weekly version provides new features for developers to try. Select a version based on your needs.

This section uses a stable version as an example to describe how to install CANN and fix common issues. If this section fails to guide you in completing the installation, see the complete CANN Software Installation Guide.

  1. Visit CANN Installation to obtain the installation commands. You can perform the following steps to filter the commands.
  2. Read and accept the CANN Software User License Agreement 2.0.
  3. Select the CANN version and the product type as prompted.
  4. Query the CPU architecture:
    arch
  5. Query the OS type:
    cat /etc/os-release
  6. Select an installation mode. The application scenarios of each installation mode are as follows:
    • Online installation (Yum) and online installation (apt-get): installs the NPU driver, Toolkit, and ops packages individually. The supported OSs vary based on the filter results.
    • Online installation (Conda): installs the Toolkit and ops packages individually. To install the NPU driver, refer to other installation methods.
      Note that the installation directory of the Conda virtual environment (and all its parent directories) must have 755 permissions. You can run the following command to check directory permissions:
      ls -ld /path/to/your/directory
    • Offline installation: Install the combined NPU driver & Toolkit package along with the ops package in one click.
      For the combined package, the current version supports only installation and uninstallation; upgrades are not supported. By default, both the driver and Toolkit are installed simultaneously. You can use the --whitelist parameter to specify the target component for installation. Example commands:
      • Installing only the driver:
        bash ./Ascend-cann_9.1.0_linux-aarch64.run --install --whitelist=driver
      • Installing only the Toolkit:
        bash ./Ascend-cann_9.1.0_linux-aarch64.run --install --whitelist=toolkit
  7. Run the installation commands as prompted.

    After the installation is complete, configure environment variables and run the verification command to check whether the installation is successful.