No part of this document may be reproduced or transmitted in any form or by any means without prior
written consent of Huawei Technologies Co., Ltd.
Trademarks and Permissions
and other Huawei trademarks are trademarks of Huawei Technologies Co., Ltd.
All other trademarks and trade names mentioned in this document are the property of their respective
holders.
Notice
The purchased products, services and features are stipulated by the contract made between Huawei and
the customer. All or part of the products, services and features described in this document may not be
within the purchase scope or the usage scope. Unless otherwise specied in the contract, all statements,
information, and recommendations in this document are provided "AS IS" without warranties, guarantees
or representations of any kind, either express or implied.
The information in this document is subject to change without notice. Every eort has been made in the
preparation of this document to ensure accuracy of the contents, but all statements, information, and
recommendations in this document do not constitute a warranty of any kind, express or implied.
2.2 Atlas 800 Inference Server (Model 3000).......................................................................................................................3
2.3 Atlas 800 Inference Server (Model 3010).......................................................................................................................4
3 Installing the Development Environment......................................................................... 5
3.1 Before You Start....................................................................................................................................................................... 5
3.3 Preparations for Installation................................................................................................................................................8
3.4 Pure Development................................................................................................................................................................ 44
3.4.1 Installing the Development Kit..................................................................................................................................... 44
3.5 Development + Commissioning....................................................................................................................................... 46
3.5.1 Installing the Ascend AI Device Driver and Firmware.......................................................................................... 46
3.5.2 Installing the Development Kit..................................................................................................................................... 47
4.2 Installation on a Physical Machine................................................................................................................................. 56
4.2.1 Preparations for Installation.......................................................................................................................................... 56
4.2.2 Installing the Ascend AI Device Driver and Firmware.......................................................................................... 57
4.2.3 Installing the Inference Software.................................................................................................................................58
4.3 Installation in a Container................................................................................................................................................. 63
4.3.1 Installing the Inference Card Driver and Firmware and Upgrading the MCU on the Host.....................63
4.3.2 Installing the Toolbox on the Host.............................................................................................................................. 64
4.3.3 Installing Ascend Docker on the Host........................................................................................................................ 64
Atlas Data Center
CANN Software Installation Guide (Inference)Contents
4.3.4 Creating an Inference Container Image.................................................................................................................... 65
4.3.5 Starting and Verifying a Container Image................................................................................................................71
5 Common Operations............................................................................................................ 74
Conguring the NIC IP Address....................................................................................................................................... 74
5.1
5.2 Conguring a System Network Proxy............................................................................................................................77
5.4 Uninstalling the CANN Software.....................................................................................................................................78
5.5 Setting User Account Validity Period............................................................................................................................. 79
status 1 " is displayed during pip3.7.5 installation...........................................................................................................88
6.4 What Do I Do If "Could not
pip3.7.5 install Is Run?................................................................................................................................................................89
nd a version that satises the requirement xxx" Is Displayed When
7.2 Default Mounted Contents of Ascend Docker Runtime.......................................................................................... 93
7.3 About CCEC Compiler.......................................................................................................................................................... 94
Atlas Data Center
CANN Software Installation Guide (Inference)1 Installation Precautions
1 Installation Precautions
Development Environment
The development environment is used to convert model
applications, and develop operators.
If you need to debug an application (for example, an image classication
application) in the development environment in addition to developing and
compiling the application, you need to
inference cards) in the development environment.
The pure development environment requires only the development kit to be
installed.
In the development + commissioning scenario, you also need to install the driver
rmware corresponding to the inference card.
and
Operating Environment
The operating environment is an environment for running applications developed
by users. The operating environment must be congured with Ascend AI devices
(such as inference cards). Applications depend on the
package, Toolbox, driver, and rmware to perform oine accelerated inference.
The operating environment includes the following two scenarios:
●Physical machine scenario: The inference card driver,
inference engine package, and Toolbox are installed on a physical machine.
Applications developed by users run on the physical machine.
●In the container scenario, you need to install Docker.
les, develop and compile
congure Ascend AI devices (such as
oine inference engine
rmware, oine
a.The inference card driver,
b.The oine inference engine package, user-developed applications, and
basic container images are encapsulated into a service inference image.
c.In the operating environment, the image is used to start the containers.
Atlas Data Center
CANN Software Installation Guide (Inference)3 Installing the Development Environment
3 Installing the Development Environment
3.1 Before You Start
3.2 Obtaining Software Packages
3.3 Preparations for Installation
3.4 Pure Development
3.5 Development + Commissioning
3.6 Performing Post-installation Operations
3.1 Before You Start
●If the development environment is used only for model
application development and compilation, and operator development, the
development environment can be a general-purpose server or a PC. In this
case, you do not need to
install the development kit Ascend-cann-toolkit_
{arch}_{gcc_version}
a.3.2 Obtaining Software Packages
b.3.3 Preparations for Installation
c.3.4 Pure Development
●In addition to converting model
and developing operators, you need to debug applications in the development
environment (for example, debugging image classication applications in the
development environment). In this case, you need to
device in the development environment and install the driver and rmware of
the Ascend AI device, and development kit (Ascend-cann-
Atlas Data Center
CANN Software Installation Guide (Inference)3 Installing the Development Environment
3.2 Obtaining Software Packages
Downloading Software Packages
Before installing the software, obtain software packages and digital signature
based on the actual scenario. The versions of the software packages must be
consistent.
●In the pure development scenario, only the development kit needs to be
installed. For details, see Table 3-1.
●In the development + commissioning scenario, you need to install the driver
rmware and development kit of the Ascend AI device. You can obtain the
required software packages according to the following table.
HardwareAscend AI DeviceHow to Obtain
Atlas 800 inference server
(model 3000)
Atlas 800 inference server
(model 3010)
Inference server with
Atlas 300I inference card
(model 3010)
Atlas 300I
inference card
(model 3000)
Atlas 300I
inference card
(model 3010)
For details, see Table 3-1
and Table 3-2.
For details, see Table 3-1
and Table 3-3.
les
Table 3-1 CANN software packages
Packa
ge
Type
Devel
opme
nt kit
Package NameDescriptionHow to
Ascend-canntoolkit_
{arch}_{gcc_version}
{version}
_linux-
.run
It is used for application
development, operator
customization, and model
conversion. The
development kit contains
the library
for developing
applications and
development auxiliary
tools such as the Ascend
Tensor Compiler (ATC)
for model conversion.
Atlas Data Center
CANN Software Installation Guide (Inference)3 Installing the Development Environment
Package
Type
MCU
package
Package NameDescriptionHow to
Obtain
● A300-3010mcu_
{version}
● A300-3010mcu_
{version}
.bin
.hpm
The MCU is an out-of-band
management module of
the Atlas 300 AI inference
card to provide functions
such as card monitoring
and fault reporting.
● To upgrade the MCU
using the npu-smi tool,
obtain the .bin MCU
package.
● To upgrade the MCU
using the iBMC, obtain
the .hpm MCU package.
{version}
indicates the OS version. Obtain the software package based on the GCC version planned or
deployed onsite. You can run the gcc --version command on the OS to query the GCC
version. If the GCC version is earlier than 7.3.0, obtain the GCC 4.8.5 software package, if
the GCC version is 7.3.0 or later, obtain the GCC 7.3.0 software package. The GCC versions
of the software packages installed in the development environment and operating
environment must be the same. Otherwise, the applications compiled in the development
environment fail to run in the operating environment.
indicates the software version,
{arch}
indicates the processor architecture, and
{os}
3.3 Preparations for Installation
3.3.1 CentOS (ARM)
Environment Requirements
The following software or dependencies need to be installed for the development
kit, Python, auxiliary development tools, and application compilation.
Atlas Data Center
CANN Software Installation Guide (Inference)3 Installing the Development Environment
ParameterVersion
gccYou can run the gcc --version command on the OS to
query the GCC version. If the GCC version is earlier
gcc-c++
than 7.3.0, you can obtain the GCC 4.8.5 development
kit. If the GCC version is 7.3.0 or later, you can obtain
the GCC 7.3.0 development kit. The GCC versions of the
software packages installed in the development
environment and operating environment must be the
same. Otherwise, the applications compiled in the
development environment fail to run in the operating
environment.
make
unzip
zlib-devel
lib-devel
openssl-devel
sqlite-devel
blas-devel
lapack-devel
openblas-devel
pciutils
net-tools
attrs
psutil
decorator
scipy
sympy
c
grpcio
grpcio-tools
requests
There is no version requirement. The version to be
installed is subject to the source provided by the OS.
Check the umask of the root user.
1.Log in to the installation environment as the root user.
2.Check the umask value of the root user.
umask
3.If the umask value is not 0022, append "umask 0022" to the le and save the
Atlas Data Center
CANN Software Installation Guide (Inference)3 Installing the Development Environment
Creating Installation and Running Users
Table 3-5 lists the users for installing and running the driver, rmware, and CANN
software.
Table 3-5 Installation and running user list
Package
Installation UserRunning User
Type
Driver and
The user must be root.The user must be a non-root user.
rmware
installation
package
CANN
software
package
The user can be root or
non-root. For details, see
the content below the
table.
●For installation as the root user:
After installation as the root user, you must switch to a non-root user for
execution (the running user must not belong to the root user group).
Therefore, you need to create a running user before the installation.
–If the created user is HwHiAiUser, you can directly install the software
packages as the HwHiAiUser user. The default installation user is
HwHiAiUser.
–If the created user is not HwHiAiUser, you need to specify the running
user (by using the --install-username=
usergroup=
user group
parameter) when installing the software package.
user name
--install-
Perform the following operations to create a user.
●For installation as a non-root user:
In this scenario, the installation and running users must be the same.
–If a non-root user exists, you do not need to create one.
–If you want to use a new non-root user, you need to create the user
rst.
To create a non-root user, run the following commands as the root user:
Atlas Data Center
CANN Software Installation Guide (Inference)3 Installing the Development Environment
● If the CANN software package is installed by a non-root user, the owner group of the
user must be the same as that of the driver running user. If they are dierent, add them
to the Driver running user group.
● The created running user cannot belong to the root user group.
● After the HwHiAiUser user is created, do not disable the login authentication function
of the user.
● The password validity period is 90 days. You can change the validity period in the /etc/
login.defs
Validity Period.
le or using the chage command. For details, see 5.5 Setting User Account
(Optional)
Conguring the Permission of the Installation User
Skip the following part if you install as the root user.
Before installing the development kit, you need to download the dependencies,
which require sudo yum permission. Run the following commands as the root
user:
1.Open the /etc/sudoers
chmod u+w /etc/sudoers
vi /etc/sudoers
2.Under root ALL=(ALL) ALL in the le, add the following content:
Replace username with the name of the common user who executes the
installation script.
Ensure that the last line of the /etc/sudoersle is #includedir /etc/sudoers.d.
Otherwise, add it manually.
3.Run :wq! to save the
le:
le.
4.Run the following command to revoke the write permission on the /etc/
sudoers le:
chmod u-w /etc/sudoers
Setting the Source
Development kit installation requires the download of related dependencies.
Ensure that the installation environment can be connected to the network. Run
the following command as the root user to check whether the source is valid:
yum makecache
If an error is reported during command execution or dependency installation,
check whether the network connection is normal, or replace the source in
the /etc/yum.repos.d/CentOS-Base.repole with an available source or use an
image source. For details about how to
Atlas Data Center
CANN Software Installation Guide (Inference)3 Installing the Development Environment
Installing Dependencies
● If you install Python and its dependencies as the root user, perform Step 1 to Step 3.
Note that the sudo keywords in the commands need to be deleted if any.
● If you install Python and its dependencies as a non-root user, run the su - username
command to switch to the non-root user and perform Step 1 to Step 3.
Step 1 Check whether the Python dependencies and GCC software are installed.
Run the following commands to check whether the dependencies such as GCC,
Make, and Python are installed:
If information similar to the following is displayed (the version number varies
according to the actual OS), the tool has been installed. Go to the next step.
gcc (GCC)
gcc-c++-4.8.5
GNU Make
cmake version
unzip-6.0-21.el7.aarch64
zlib-devel-
In the preceding steps, if the error message "No package libopenblas available" is
displayed during the installation of openblas-devel, you need to install the
extension package of the Linux enterprise edition and then install openblas-devel
again. Run the following command to install the extension package:
sudo yum install epel-release
If the CMake version installed using the preceding method is earlier than 3.5.1, see
5.3 Installing CMake 3.5.2.
Step 2 Check whether the Python development environment is installed.
The development kit depends on the Python environment. Run the python3.7.5 -version and pip3.7.5 --version commands to check whether Python has been
2.Run the following command to go to the download directory and decompress
the source code package:
tar -zxvf Python-3.7.5.tgz
3.Go to the decompressed folder and run the following conguration, build, and
installation commands:
cd Python-3.7.5
./congure--prex=/usr/local/python3.7.5 --enable-shared
make
sudo make install
--prex parameter species the Python installation path. You can change
The
it based on the site requirements. The --enable-shared parameter is used to
compile the libpython3.7m.so.1.0 dynamic library.
This document uses
--prex=/usr/local/python3.7.5 as an example. After theconguration, compilation, and installation commands are executed, the
installation package is output to the /usr/local/python3.7.5 directory, and the
libpython3.7m.so.1.0 dynamic library is output to the /usr/local/
python3.7.5/lib/libpython3.7m.so.1.0 directory.
4.Check whether libpython3.7m.so.1.0 exists in /usr/lib64 or /usr/lib. If yes,
skip this step or back up the libpython3.7m.so.1.0
le provided by the system
and run the following command:
Copy the compiled lelibpython3.7m.so.1.0 to /usr/lib64:
sudo cp /usr/local/
python3.7.5/lib/
libpython3.7m.so.1.0 /usr/lib64
When the following information is displayed, enter y to overwrite the
libpython3.7m.so.1.0le provided by the system.
cp: overwrite 'libpython3.7m.so.1.0'?y
If the /usr/lib64 directory does not exist in the environment, copy the
le to
the /usr/lib directory.
sudo cp /usr/local
Replace the path of the libpython3.7m.so.1.0
/python3.7.5/lib
/libpython3.7m.so.1.0 /usr/lib
le as required.
5.Run the following commands to set the soft link:
If a message indicating that the link already exists is displayed during the
command execution, run the following command to delete the existing link
and run the command again:
Atlas Data Center
CANN Software Installation Guide (Inference)3 Installing the Development Environment
6.After the installation is complete, run the following commands to check the
installation version. If the required version information is displayed, the
installation is successful.
python3.7.5 --version
pip3.7.5 --version
Step 3 Install the Python 3 development environment.
Before the installation, run the pip3.7.5 list command to check whether the
dependencies have been installed. If yes, skip this step. If not, run the following
command to install the dependencies: (If only some of the software is not
installed, modify the following command to install selected software only.)
If you install Python and its dependencies as a non-root user, add --user at the
end of each command in this step to ensure that the installation is successful.
Example command: pip3.7.5 install attrs --user
Atlas Data Center
CANN Software Installation Guide (Inference)3 Installing the Development Environment
Table 3-7 Installation and running user list
Package
Installation UserRunning User
Type
Driver and
The user must be root.The user must be a non-root user.
rmware
installation
package
CANN
software
package
The user can be root or
non-root. For details, see
the content below the
table.
●For installation as the root user:
After installation as the root user, you must switch to a non-root user for
execution (the running user must not belong to the root user group).
Therefore, you need to create a running user before the installation.
–If the created user is HwHiAiUser, you can directly install the software
packages as the HwHiAiUser user. The default installation user is
HwHiAiUser.
–If the created user is not HwHiAiUser, you need to specify the running
user (by using the --install-username=
usergroup=
user group
parameter) when installing the software package.
user name
--install-
Perform the following operations to create a user.
●For installation as a non-root user:
In this scenario, the installation and running users must be the same.
–If a non-root user exists, you do not need to create one.
–If you want to use a new non-root user, you need to create the user
To create a non-root user, run the following commands as the root user:
1.Create a non-root user.
groupadd
useradd -g
usergroup
usergroup
-d /home/
username
-m
username
2.Set the password of the non-root user.
passwd
username
● If the CANN software package is installed by a non-root user, the owner group of the
user must be the same as that of the driver running user. If they are dierent, add them
to the Driver running user group.
● The created running user cannot belong to the root user group.
● After the HwHiAiUser user is created, do not disable the login authentication function
of the user.
● The password validity period is 90 days. You can change the validity period in the /etc/
login.defs le or using the chage command. For details, see 5.5 Setting User Account
Atlas Data Center
CANN Software Installation Guide (Inference)3 Installing the Development Environment
(Optional) Conguring the Permission of the Installation User
Skip the following part if you install as the root user.
Before installing the development kit, you need to download the dependencies,
which require sudo apt-get permission. Run the following commands as the root
user:
1.Open the /etc/sudoersle:
chmod u+w /etc/sudoers
vi /etc/sudoers
2.Add the following content below # User privilege
Replace username with the name of the common user who executes the
installation script.
Ensure that the last line of the /etc/sudoersle is #includedir /etc/sudoers.d.
Otherwise, add it manually.
3.Run :wq! to save the
le.
4.Run the following command to revoke the write permission on the /etc/
sudoers
chmod u-w /etc/sudoers
le:
specication of the le:
Checking the Source Validity
Development kit installation requires the download of related dependencies.
Ensure that the installation environment can be connected to the network.
Run the following command as the root user to check whether the source is valid:
apt-get update
If an error is reported during command execution or dependency installation,
check whether the network connection is normal, or replace the source in
the /etc/apt/sources.list
details about how to congure a network proxy, see 5.2 Conguring a System
Network Proxy.
Installing Dependencies
● If you install Python and its dependencies as the root user, perform Step 1 to Step 3.
Note that the sudo keywords in the commands need to be deleted if any.
● If you install Python and its dependencies as a non-root user, run the su - username
command to switch to the non-root user and perform Step 1 to Step 3.
Step 1 Check whether the Python dependencies and GCC software are installed.
le with an available source or use an image source. For
Run the following commands to check whether the dependencies such as GCC,
Make, and Python are installed:
Step 2 Check whether the Python development environment is installed.
The development kit depends on the Python environment. Run the python3.7.5 --version and pip3.7.5 --version commands to check whether Python has been
installed. If the following information is displayed, Python has been installed. Go
to the next step.
Python 3.7.5
pip
19.2.3
from /usr/local/python3.7.5/lib/python3.7/site-packages/pip (python 3.7)
Otherwise, use the following procedure to install Python 3.7.5:
1.Run the wget command to download the source code package of Python
3.7.5 to any directory of the installation environment. The command is as
follows:
Atlas Data Center
CANN Software Installation Guide (Inference)3 Installing the Development Environment
make
sudo make install
The
--prex parameter species the Python installation path. You can change
it based on the site requirements. The --enable-shared parameter is used to
compile the libpython3.7m.so.1.0 dynamic library.
This document uses
--prex=/usr/local/python3.7.5 as an example. After theconguration, compilation, and installation commands are executed, the
installation package is output to the /usr/local/python3.7.5 directory, and the
libpython3.7m.so.1.0 dynamic library is output to the /usr/local/
python3.7.5/lib/libpython3.7m.so.1.0 directory.
4.Check whether libpython3.7m.so.1.0 exists in /usr/lib64 or /usr/lib. If yes,
skip this step or back up the libpython3.7m.so.1.0
le provided by the system
and run the following command:
Copy the compiled
sudo cp /usr/local/
lelibpython3.7m.so.1.0 to /usr/lib64:
python3.7.5/lib/
libpython3.7m.so.1.0 /usr/lib64
When the following information is displayed, enter y to overwrite the
libpython3.7m.so.1.0
cp: overwrite 'libpython3.7m.so.1.0'?y
If the /usr/lib64 directory does not exist in the environment, copy the
le provided by the system.
le to
the /usr/lib directory.
sudo cp /usr/local
Replace the path of the libpython3.7m.so.1.0
/python3.7.5/lib
/libpython3.7m.so.1.0 /usr/lib
le as required.
5.Run the following commands to set the soft link:
If a message indicating that the link already exists is displayed during the
command execution, run the following command to delete the existing link
and run the command again:
6.After the installation is complete, run the following commands to check the
installation version. If the required version information is displayed, the
installation is successful.
python3.7.5 --version
pip3.7.5 --version
Step 3 Install the Python 3 development environment.
Before the installation, run the pip3.7.5 list command to check whether the
dependencies have been installed. If yes, skip this step. If not, run the following
command to install the dependencies: (If only some of the software is not
installed, modify the following command to install selected software only.) The
Model Accuracy Analyzer in the Toolkit depends on protobuf and SciPy.
Proling
depends on protobuf, grpcio, grpcio-tools, and requests.
If you install Python and its dependencies as a non-root user, add --user at the
end of each command in this step to ensure that the installation is successful.
Example command: pip3.7.5 install attrs --user
Atlas Data Center
CANN Software Installation Guide (Inference)3 Installing the Development Environment
Table 3-9 Installation and running user list
Package
Installation UserRunning User
Type
Driver and
The user must be root.The user must be a non-root user.
rmware
installation
package
CANN
software
package
The user can be root or
non-root. For details, see
the content below the
table.
●For installation as the root user:
After installation as the root user, you must switch to a non-root user for
execution (the running user must not belong to the root user group).
Therefore, you need to create a running user before the installation.
–If the created user is HwHiAiUser, you can directly install the software
packages as the HwHiAiUser user. The default installation user is
HwHiAiUser.
–If the created user is not HwHiAiUser, you need to specify the running
user (by using the --install-username=
usergroup=
user group
parameter) when installing the software package.
user name
--install-
Perform the following operations to create a user.
●For installation as a non-root user:
In this scenario, the installation and running users must be the same.
–If a non-root user exists, you do not need to create one.
–If you want to use a new non-root user, you need to create the user
To create a non-root user, run the following commands as the root user:
1.Create a non-root user.
groupadd
useradd -g
usergroup
usergroup
-d /home/
username
-m
username
2.Set the password of the non-root user.
passwd
username
● If the CANN software package is installed by a non-root user, the owner group of the
user must be the same as that of the driver running user. If they are dierent, add them
to the Driver running user group.
● The created running user cannot belong to the root user group.
● After the HwHiAiUser user is created, do not disable the login authentication function
of the user.
● The password validity period is 90 days. You can change the validity period in the /etc/
login.defs le or using the chage command. For details, see 5.5 Setting User Account
Atlas Data Center
CANN Software Installation Guide (Inference)3 Installing the Development Environment
(Optional) Conguring the Permission of the Installation User
Skip the following part if you install as the root user.
Before installing the development kit, you need to download the dependencies,
which require sudo yum permission. Run the following commands as the root
user:
1.Open the /etc/sudoersle:
chmod u+w /etc/sudoers
vi /etc/sudoers
2.Under root ALL=(ALL) ALL in the le, add the following content:
Ensure that the last line of the /etc/sudoersle is #includedir /etc/sudoers.d.
Otherwise, add it manually.
le.
le:
Checking the Source Validity
The installation requires the download of related dependencies. Ensure that the
installation environment can be connected to the network.
Run the following command as the root user to check whether the source is valid:
yum repolist
If an error is reported during command execution or dependency installation, check
whether the network connection is normal, or replace the source in the /etc/yum.repos.d/xxxx.repo
congure a network proxy, see 5.2 Conguring a System Network Proxy.
le with an available source or use an image source. For details about how to
Installing Dependencies
● If you install Python and its dependencies as the root user, perform 1 to 3. Note that
the sudo keywords in the commands need to be deleted if any.
● If you install Python and its dependencies as a non-root user, run the su - username
command to switch to the non-root user and perform 1 to 3.
Step 1 Check whether the Python dependencies and GCC software are installed.
Run the following commands to check whether the dependencies such as GCC,
Make, and Python are installed:
Step 2 Check whether the Python development environment is installed.
The development kit depends on the Python environment. Run the python --version and pip --version commands to check whether Python has been installed.
If the following information is displayed, Python has been installed. Go to the next
step.
Python 3.7.5
pip
19.2.3
from /usr/local/python3.7.5/lib/python3.7/site-packages/pip (python 3.7)
Otherwise, use the following procedure to install Python 3.7.5:
1.Run the wget command to download the source code package of Python
3.7.5 to any directory of the installation environment. The command is as
follows:
If a message indicating that the link already exists is displayed during the
command execution, run the following command to delete the existing link
and run the command again:
6.After the installation is complete, run the following commands to check the
installation version. If the required version information is displayed, the
installation is successful.
Step 3 Install the Python 3 development environment.
Before the installation, run the pip3.7.5 list command to check whether the
dependencies have been installed. If yes, skip this step. If not, run the following
Atlas Data Center
CANN Software Installation Guide (Inference)3 Installing the Development Environment
command to install the dependencies: (If only some of the software is not
installed, modify the following command to install selected software only.)
If you install Python and its dependencies as a non-root user, add --user at the
end of each command in this step to ensure that the installation is successful.
Example command: pip3.7.5 install attrs --user
During the command execution, if the network connection fails and the message
"Could not
nd a version that satises the requirement
the fault by referring to 6.4 What Do I Do If "Could not
xxx
" is displayed, rectify
nd a version that
satises the requirement xxx" Is Displayed When pip3.7.5 install Is Run?.
----End
3.3.4 CentOS (x86 OS)
Environment Requirements
The following software or dependencies need to be installed for the development
kit, Python, auxiliary development tools, and application compilation.
Table 3-10 Dependency information
Parameter
Python3.7.5
cmake3.5.1+
protobuf3.11.3+
numpy1.13.3+
gccYou can run the gcc --version command on the OS
gcc-c++
Version
to query the GCC version. If the GCC version is earlier
than 7.3.0, you can obtain the gcc4.8.5 development
kit. If the gcc version is 7.3.0 or later, you can obtain
the gcc7.3.0 development kit. The GCC versions of
the software packages installed in the development
environment and operating environment must be the
same. Otherwise, the applications compiled in the
development environment fail to run in the operating
environment.