Downloading Packages
You can download the OS dependencies required by the CANN software package, TensorFlow installation package for the x86 architecture, and Docker on Windows or Linux.
Notes
- For details about how to configure a network proxy, see Configuring the Network Proxy.
- ascend-deployer provides the source configuration file. Huawei source is used by default. Replace it as required. For details, see Configuring the Source.
- Once you start downloading, OS dependencies required by the CANN software package, TensorFlow installation package for the x86 architecture, and Docker will be automatically downloaded and stored in the ascend-deployer/resources directory.
- Specify Kylin_V10Tercel_aarch64 or Kylin_V10Tercel_x86_64 as the dependency for the Kylin V10 SP1 system. Specify Kylin_V10Tercel_aarch64 as the dependency for the Kylin V10 GFB system.
- A large amount of open source software needs to be installed. The open source software downloaded using ascend-deployer comes from the OS source. You need to fix the vulnerabilities of the open source software as required. You are advised to use the official source to update the software regularly.
Procedure
To download the driver, firmware, and CANN software packages of versions earlier than 6.0.RC1 online, the requirements listed in Requirements for Online Download must be met.
- Windows
- Download Python since Python 3 is required in the Windows environment. Python 3.7 or later is recommended. If it has been installed, skip this step.
Complete the installation as prompted. During the installation, select Add Python to environment variables on the Advanced Options page. Otherwise, you need to manually add environment variables.
- Start the download in either of the following ways:
- (Recommended) Run start_download_ui.bat.
On the displayed page, select the OS and the software package to be downloaded.
- Run start_download.bat.
Specify the OS and required software packages for the device to be installed. See Configuring the Downloading Behavior.
- (Recommended) Run start_download_ui.bat.
- Download Python since Python 3 is required in the Windows environment. Python 3.7 or later is recommended. If it has been installed, skip this step.
- Linux
- Both the root user and non-root users are allowed to perform the download operation. The user who performs the download operation must have the execute permission on the ascend-deployer directory.
- Ensure that Python 3 and pip 3 exist in the current environment.
- If you want to install the software listed in Table 1 as a non-root user, you need to download the software as the root user and non-root user respectively.
- Run the following command to install ascend-deployer using pip.
ascend-download --os-list=<OS1>,<OS2> --download=<PK1>,<PK2>==<Version>
Run the ascend-download --help command to view the options of <OS1>,<OS2> and <PK1>,<PK2>==<Version>. For details about the parameters, see Table 1.
Before running the preceding command, ensure that the ascend-deployer directory does not exist in the $HOME directory. If it exists, delete it before running the command. When you run the command, the ascend-deployer directory is generated in the $HOME directory by default. You can change the path of the ascend-deployer directory by setting the environment variable ASCEND_DEPLOYER_HOME.
- To decompress the downloaded .zip package, go to the ascend-deployer directory and run the following command:
./start_download.sh --os-list=<OS1>,<OS2> --download=<PK1>,<PK2>==<Version>
Run the ./start_download.sh --help command to view the options of <OS1>,<OS2> and <PK1>,<PK2>==<Version>. For details about the parameters, see Table 1.
Table 1 Parameter description Parameter
Description
--os-list=<OS1>,<OS2>
--os-list specifies the target device OS. You can configure one or more OSs as required. The following is an example:
--os-list=Ubuntu_18.04_aarch64,Ubuntu_18.04_x86_64
--download=<PK1>,<PK2>==<Version>
You can use the --download parameter to download the software packages (such as the Toolkit software package) listed in Table 1, MindSpore software package, and MindStudio software package. This parameter must be used together with the --os-list parameter. If you want to obtain the software packages in other ways (For details, see Obtaining Software Packages), delete this parameter. If you need to install MindSpore or MindStudio, specify the --download parameter to download it online.
If you want to specify the version of the software package to be downloaded, pay attention to the version mapping. For details, see Ascend Data Center Solution Version Mapping. If you do not specify the software package version, the latest available version of the software package will be downloaded. The following is an example:
--download=CANN,MindSpore,MindStudio
- If --download is set to CANN, the driver, firmware, and CANN software packages will be automatically downloaded and stored in the ascend-deployer/resources/CANN_x.x.x directory.
- If --download is set to MindSpore, the MindSpore software package is automatically downloaded and stored in the Ascendxxx and CPU directories in ascend-deployer/resources/{OS}.
- If --download is set to MindStudio, the MindStudio software package will be automatically downloaded and stored in the ascend-deployer/resources/MindStudio_x.x.x directory. Currently, the ascend-deployer tool is used to download and install MindStudio. Only Ubuntu_18.04_x86_64, Ubuntu_18.04_aarch64, and EulerOS_2.8_aarch64 are supported.