---
title: pip3 install numpy报错-昇腾社区
description: 安装依赖时，使用pip3 install numpy命令安装时报错“Could not build wheels for numpy which use PEP 517 and cannot be install directly”
keywords: CANN;pip3;numpy
url: https://www.hiascend.com/document/caselibrary/detail/canncase_000006.xml
section: (其他)
---

# pip3 install numpy报错-昇腾社区

URL: https://www.hiascend.com/document/caselibrary/detail/canncase_000006.xml
描述: 安装依赖时，使用pip3 install numpy命令安装时报错“Could not build wheels for numpy which use PEP 517 and cannot be install directly”
关键词: CANN;pip3;numpy

昇腾文档 [了解详情](https://www.hiascend.com/document)

故障案例 [了解详情](https://www.hiascend.com/document/caselibrary)

pip3 install numpy报错

pip3 install numpy报错

2022/06/07

5.5k

5.0

问题信息

| 问题来源 | 产品大类 | 产品子类 | 关键字 |
| --- | --- | --- | ---|
| 官方 | 安装部署 | CANN | CANN、pip3、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.17.2
```

本页内容

- 问题信息
- 问题现象描述
- 原因分析
- 解决措施
