Dependencies

Before installing MindStudio and 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, installation on each Ubuntu OS is similar to that on the •Ubuntu example and installation on the EulerOS, openEuler, CentOS, and Kylin is similar to that on the •CentOS example. The dependency list is as follows:

  • Ubuntu
    Table 1 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 the 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: 3.7.x, 3.8.x, 3.9.x (To run MindX SDK, 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

    xterm

    Library file for MindStudio to display operating dependencies.

    x11-apps

    firefox

    Software for MindStudio to display HTML reports.

    xdg-utils

    openssh-server

    Software on which MindStudio remote connection depends.

    libdbus-glib-1-dev

    -

    gdb

    Software for C/C++ debugging.

    python

    Version requirements: 3.7.x, 3.8.x, and 3.9.x

    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

  • CentOS
    Table 2 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 the 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: 3.7.x, 3.8.x, and 3.9.x (To run MindX SDK, 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

    xterm

    Library file for MindStudio to display operating dependencies.

    xorg-x11-xauth

    firefox

    Software for MindStudio to display HTML reports.

    xdg-utils

    openssh

    Software on which MindStudio remote connection depends.

    dbus-glib-devel

    -

    gdb

    Software for C/C++ debugging.

    python

    Version requirements: 3.7.x, 3.8.x, and 3.9.x

    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