Dependencies

Before installing the CANN software, install related dependencies. For details, see Table 1 Dependencies.

Table 1 Dependencies

Type

Name

Required Version

Related software or tools

gcc

The GCC version must be 7.3.0 or later. If the GCC version is earlier than 7.3.0, install the GCC. See Installing GCC 7.3.0.

make

-

net-tools

-

Python

Python3.7.x to 3.11.4.

If TensorFlow needs to be installed, install the required Python version.

  • TensorFlow 1.15 matches Python 3.7.x (3.7.5-3.7.11).
  • TensorFlow 2.6.5 matches Python3.7.x (3.7.5-3.7.11), Python3.8.x, and Python3.9.x.

python3-devel

Used with the installed Python version.

python3-pip

Used with the installed Python version.

Third-party Python library

numpy

Greater than or equal to 1.19.2 and less than or equal to 1.24

NumPy 1.21.6 is recommended for Python 3.7.x.

decorator

>=4.4.0

sympy

>=1.5.1

cffi

>=1.12.3

protobuf

3.20

attrs

cython

pyyaml

pathlib2

scipy

requests

psutil

absl-py

There is no version requirement. The version is subject to the pip source.

Software package runtime dependency

glibc

The glibc version must be 2.17 or later when you run the NNAL acceleration library. You can run the ldd --version command to query the glibc version (Mainstream Linux OSs meet the requirement of glibc versions. If the requirement is not meet, you are advised to reinstall the system of a new version. You are not advised to directly upgrade glibc, which may cause system breakdown).