Dependencies

Before installing MindStudio IDE and the Ascend-CANN-Toolkit, install related dependencies. This section uses the Ubuntu OS and CentOS as examples to describe how to install dependencies. For other OSs, refer to the installation methods of the preceding OSs. For example, install Ubuntu OS according to Table 1 and install EulerOS, openEuler, CentOS, and Kylin according to Table 2. The dependency list is as follows:
Table 1 Ubuntu dependencies

Software Package

Dependency

Description

Python

gcc

  • Dependencies required for Python build and installation.
  • libsqlite3-dev must be installed before Python installation. If the Python environment that meets version requirements has been installed in the user's OS and libsqlite3-dev is installed after the Python environment is installed, you need to rebuild the Python environment.
NOTE:

If the GCC version in the current system is earlier than 7.3.0, you are advised to upgrade it to 7.3.0 or later. For details about how to install gcc-7.3.0, see "Common Operations" > "Installing GCC 7.3.0" in CANN Software Installation Guide.

g++

cmake

make

zlib1g-dev

libbz2-dev

libsqlite3-dev

libssl-dev

libffi-dev

liblzma-dev

Ascend-CANN-Toolkit

pciutils

-

net-tools

-

unzip

-

libsqlite3-dev

-

python

Version requirements: Python 3.7.x (3.7.0–3.7.11), Python 3.8.x (3.8.0–3.8.11), Python 3.9.x (3.9.0–3.9.7), and Python 3.10.x (3.10.0–3.10.12) (If MindSDK is required, the version must be 3.9.x.)

protobuf

Version requirements: 3.13.0 or later

psutil

-

numpy

Version requirements: 1.13.3 or later

scipy

For the AArch64 architecture, the dependencies libblas-dev, gfortran, libblas3, and liblapack-dev must be installed first.

decorator

Version requirements: 4.4.0 or later

sympy

Version requirements: 1.5.1 or later

cffi

Version requirements: 1.12.3 or later

pyyaml

-

pathlib2

-

MindStudio IDE

xterm

Library file for MindStudio IDE to display operating dependencies.

x11-apps

firefox

Software for MindStudio IDE to display HTML reports.

xdg-utils

openssh-server

Software on which MindStudio IDE remote connection depends.

libdbus-glib-1-dev

-

gdb

Software for C/C++ debugging.

python

Version requirements: Python 3.7.x (3.7.0–3.7.11), Python 3.8.x (3.8.0–3.8.11), Python 3.9.x (3.9.0–3.9.7), and Python 3.10.x (3.10.0–3.10.12)

grpcio

-

pylint

-

requests

-

absl-py

-

pandas (optional)

Software on which the analysis and migration tools depend.

coverage (optional)

Software required by the UT tool.

gnureadline (optional)

The dependencies libffi-dev and libncurses5-dev must be installed first.

TIK dependency

xlrd (optional)

Software for creating operator projects.

Version requirements: 1.2.0

Table 2 CentOS dependencies

Software Package

Dependency

Description

Python

gcc

  • Dependencies required for Python build and installation.
  • sqlite-devel must be installed before Python installation. If the Python environment that meets version requirements has been installed in the user's OS and sqlite-devel is installed after the Python environment is installed, you need to rebuild the Python environment.
NOTE:

If the GCC version in the current system is earlier than 7.3.0, you are advised to upgrade it to 7.3.0 or later. For details about how to install gcc-7.3.0, see "Common Operations" > "Installing GCC 7.3.0" in CANN Software Installation Guide.

g++

cmake

make

zlib-devel

bzip2-devel

sqlite-devel

openssl-devel

libffi-devel

xz-devel

Ascend-CANN-Toolkit

pciutils

-

net-tools

-

unzip

-

sqlite-devel

Software for the Profiling tool.

python

Version requirements: Python 3.7.x (3.7.0–3.7.11), Python 3.8.x (3.8.0–3.8.11), Python 3.9.x (3.9.0–3.9.7), and Python 3.10.x (3.10.0–3.10.12) (If MindSDK is required, the version must be 3.9.x.)

protobuf

Version requirements: 3.13.0 or later

psutil

-

numpy

Version requirements: 1.13.3 or later

scipy

For the AArch64 architecture, the dependencies lapack-devel and gfortran must be installed first.

decorator

Version requirements: 4.4.0 or later

sympy

Version requirements: 1.5.1 or later

cffi

Version requirements: 1.12.3 or later

pyyaml

-

pathlib2

-

MindStudio IDE

xterm

Library file for MindStudio IDE to display operating dependencies.

xorg-x11-xauth

firefox

Software for MindStudio IDE to display HTML reports.

xdg-utils

openssh

Software on which MindStudio IDE remote connection depends.

dbus-glib-devel

-

gdb

Software for C/C++ debugging.

python

Version requirements: Python 3.7.x (3.7.0–3.7.11), Python 3.8.x (3.8.0–3.8.11), Python 3.9.x (3.9.0–3.9.7), and Python 3.10.x (3.10.0–3.10.12)

grpcio

-

pylint

-

requests

-

absl-py

-

pandas (optional)

Software for script conversion.

coverage (optional)

Software required by the UT tool.

gnureadline (optional)

The dependencies libffi-devel and ncurses-devel must be installed first.

TIK dependency

xlrd (optional)

Software for creating operator projects.

Version requirements: 1.2.0