Quick Installation FAQs

CANN Quick Installation provides the procedure for installing the driver, Toolkit, and ops operator package, as well as the procedure for verifying the installation, allowing you to quickly deploy CANN. This section describes how to use the web page and provides solutions to common problems.

  1. Visit CANN Quick Installation to obtain the installation command. You can perform the following steps to filter the command.
  2. Read and accept the CANN Software User License Agreement 1.0.
  3. Select the CANN version and the product type as prompted.
  4. Run the following command to query the CPU architecture:
    arch
  5. Run the following command to 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 separately. The supported OSs vary based on the filter results..
    • Online installation (Conda): installs the Toolkit and ops packages separately. If you need to install the NPU driver, refer to other installation mode.
      Note that the installation directory of the Conda virtual environment (and all its upper-level directories) must have the 755 permission. You can run the following command to query the directory permission:
      ls -ld /path/to/your/directory
    • Offline installation: installs the combined NPU driver and Toolkit package and the ops package in one-click mode.
      For the combined package, the current version supports only installation and uninstallation, but does not support upgrade. By default, both the driver and Toolkit are installed. You can use --whitelist to specify the installation. Example commands:
      • Installing only the driver:
        bash ./Ascend-cann_8.5.0_linux-aarch64.run --install --whitelist=driver
      • Installing only Toolkit:
        bash ./Ascend-cann_8.5.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.