Running Dependencies

Installing and running the CANN software requires related dependencies. For details, see Table 1.

Table 1 Dependencies

Name

Required Version

Python

The version ranges from Python 3.7.x to Python 3.13.x.

If the Python library of the NNAL package needs to be installed, install Python 3.10.x or 3.11.x.

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.

If the installation fails, the version does not meet the requirements, or the dynamic library libpython3.x.so is not included, perform the operations in Compiling and Installing Python.

python3-pip

This dependency is used with the installed Python version.

GCC

The version is 7.3.0 or later. Use the version provided by the system source.

G++

This dependency is used with the installed GCC version.

NumPy

If the Python version is earlier than 3.13, the NumPy version is 1.19.2 or later and is earlier than 2.0.

If the Python version is 3.13 or later, the NumPy version is later than 2.1.

If the Python version is 3.7.x, NumPy 1.21.6 is recommended.

This dependency is used with the installed Python version.

decorator

4.4.0 or later

sympy

1.5.1 or later

cffi

1.12.3 or later

protobuf

3.20.x

attrs

cython

pyyaml

pathlib2

scipy

requests

psutil

absl-py

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