Obtaining ascend-deployer

ascend-deployer provides automatic download and installation of the OS dependencies, TensorFlow installation package for the x86 architecture, and Docker as well as driver, firmware, and CANN software packages.

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 to change 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 item in the 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 and PyTorch do not support Python 3.8.x and Python 3.9.x.

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

  • Windows

    You can only download the ascend-deployer package on the 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:

    Click here to download the ascend-deployer tool. (You are advised to download the latest tool package 2.0.4.*.)

    Then decompress the package.

  • 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 the Linux OS:

    For details about how to configure a network proxy, see Configuring a System Network Proxy (Linux).

    • Method 1: Pip-based installation. When using this method, Python 3.6 or later is required.
      Run the following command as the root user:
      pip3 install ascend-deployer

      If the system displays a message indicating that the pip3 command does not exist, install pip.

    • Method 2: ZIP package download

      Click here to download the ascend-deployer tool. (You are advised to download the latest tool package 2.0.4.*.)

      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.