pip3 install numpy报错
更新时间: 2022/06/07
问题信息
问题来源 | 产品大类 | 产品子类 | 关键字 |
---|---|---|---|
官方 | 安装部署 | 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
本页内容