Runtime Dependencies

Installing and running the CANN software requires related dependencies, as listed in Table 1.

Table 1 Dependencies

Name

Required Version

Python

Python 3.7.x to 3.11.x

If you need to install the Python library of the NNAL software package, install Python 3.10. x or 3.11. x.

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

  • TensorFlow 1.15 works with Python 3.7.x (3.7.5 to 3.7.11).
  • TensorFlow 2.6.5 works with Python 3.7.x (3.7.5 to 3.7.11), Python 3.8.x, and Python 3.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

Works with the installed Python version.

gcc

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

g++

Works with the installed GCC version.

numpy

>=1.19.2

Works the installed Python version.

decorator

>=4.4.0

sympy

>=1.5.1

cffi

>=1.12.3

protobuf

3.20.x

attrs

cython

pyyaml

pathlib2

scipy

requests

psutil

absl-py

Subject to the pip source.