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 PyTorch does not support Python 3.8.x and Python 3.9.x.
- The currently adapted TensorFlow 1.15.0 supports only Python 3.7, and TensorFlow 2.6.5 supports Python 3.7, Python 3.8, and Python 3.9. Install Python of the required version based on the TensorFlow version. Due to dependency conflicts, if a TensorFlow version is installed, uninstall the installed one before installing another TensorFlow version.
ascend-deployer can be used on 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:
Download ascend-deployer. (The latest tool package is recommended.)
Download, decompress, and install 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:
- Method 1: Pip-based installation. This method requires the Python 3.6 or later to be used.
<version> indicates the software package version. Download the latest version from the official website. If the system displays a message indicating that the pip3 command does not exist, install pip.
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.
- Method 2: ZIP package download
Download ascend-deployer. (The latest 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/resources directory.
- Method 1: Pip-based installation. This method requires the Python 3.6 or later to be used.