pip3 install numpy Error

Symptom

When you run the pip3 install numpy command to install the dependency, the error message "Could not build wheels for numpy which use PEP 517 and cannot be install directly" is displayed, as shown in the following figure.

Possible Causes

The default GCC version installed in the CentOS system is too early. As a result, the NumPy fails to be installed.

Solution

Run the following commands:

export CFLAGS=-std=c99
pip3 install numpy==1.17.2