---
title: pip3 install numpy报错
description: "安装依赖时，使用pip3 install numpy命令安装时报错“Could not build wheels for numpy which use PEP 517 and cannot be install directly”，提示信息如下："
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/softwareinst/instg/instg_0078.html
sourcePath: /source/zh/canncommercial/900/softwareinst/instg/instg_0078.html
indexId: 1ab9e83aca9aae1064ae48510b855587f897df569b6d734048bafa38628e3b7764
---
# pip3 install numpy报错

#### 问题描述

安装依赖时，使用pip3 install numpy命令安装时报错“Could not build wheels for numpy which use PEP 517 and cannot be install directly”，提示信息如下：


#### 可能原因

CentOS等系统默认安装的gcc版本较低，导致numpy安装失败。


#### 解决措施

执行如下命令安装：

```
export CFLAGS=-std=c99
pip3 install numpy==1.19.2
```
