Runtime Dependencies
Python 3.7.x and 3.8.x has reached End of Support. CANN versions released after March 30, 2027 will not support these Python versions. We recommend upgrading to Python 3.9.x to 3.14.x for stable software performance.
Installing and running the CANN software requires related dependencies, as listed in Table 1.
Name |
Required Version |
|---|---|
Python |
Python 3.7.x to 3.14.x For the NNAL, install Python 3.10.x or 3.11.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 |
Used 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 with the installed Python version. |
decorator |
>=4.4.0 |
sympy |
>=1.5.1 |
cffi |
>=1.12.3 |
attrs cython pyyaml pathlib2 protobuf scipy requests psutil absl-py |
There is no version requirement. The version is subject to the pip source. |