Obtaining ascend-deployer

ascend-deployer provides automatic download and one-click installation of OS dependencies and Docker. It also supports online download, installation, and upgrade of drivers, firmware, CANN, MindStudio, MindX DL, and MEF Center software packages.

Precautions

  • By default, the Python version downloaded and installed using ascend-deployer is 3.7.5. The following operations use Python 3.7.5 as an example. If you want to select another Python version (you are not advised changing the default configuration), you can set the environment variable ASCEND_PYTHON_VERSION (for example, running export ASCEND_PYTHON_VERSION=Python-3.7.0) or modify the Python configuration option in the ascend-deployer/ascend_deployer/downloader/config.ini file to specify the Python version to be installed. The available versions are 3.7.0 to 3.7.11, 3.8.0 to 3.8.11, and 3.9.0 to 3.9.9. Note that the currently adapted TensorFlow does not support Python 3.8.x and Python 3.9.x.
  • Users who are switched using the sudo or su command cannot use the ascend-deployer tool to set up environments.

Obtaining the Tool

ascend-deployer can be used on the Linux or Windows OS:

  • Windows

    You can only download the ascend-deployer package on a Windows OS and then upload the entire ascend-deployer directory to the target device running Linux. ascend-deployer does not need to be installed on the target device.

    To obtain ascend-deployer (.zip package) on the Windows OS:

    Download ascend-deployer and decompress it. (The latest 5.0.0 tool package is recommended.)

  • Linux

    You can use ascend-deployer to download and install software packages.

    You can use either of the following methods to install ascend-deployer on a Linux OS:

    • Method 1: .zip package download

      Download ascend-deployer. (The latest 5.0.0 tool package is recommended.)

      • Download the .zip package and upload it to the target device (Linux). (To prevent the software package from being tampered with during transmission or storage, you are advised to use sha256sum to verify the integrity of the downloaded software package.)
      • To avoid the risk of excessive permission after decompression, you are advised to set umask to 077 before decompressing the .zip package and decompress and use the tool in the home directory. When the tool performs the download function, the software package is automatically placed in the $HOME/ascend-deployer/ascend_deployer/resources directory.
    • Method 2: pip installation. (Ensure that the Python version in the current environment is 3.6 or later and pip3 has been installed.)
      Run the following command:
      pip3 install ascend-deployer==<version>

      <version> indicates the software package version. Download the latest version from the official website.

      After ascend-deployer is downloaded using pip, the software package is automatically stored in the $HOME/ascend-deployer/resources directory when the tool performs the download function.