Quick Installation FAQ

CANN Installation provides the procedures for installing the driver, Toolkit, and ops package, and verifying the installation, helping you quickly deploy the CANN environment. This section describes how to use this guide and provides solutions to common problems. If this guide cannot meet your requirements, see the complete guide in CANN Software Installation.

  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 License Agreement.
  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: installs the combined NPU driver & Toolkit package along with the ops package in one-click mode.
      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.0.0_linux-aarch64.run --install --whitelist=driver
      • Installing only the Toolkit:
        bash ./Ascend-cann_9.0.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.