pip3.7.5 install numpy报错
问题描述
安装依赖时,使用pip3.7 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.7 install numpy==1.17.2
注意这里使用完后CFLAGS标志要改回来,否则在当前窗口的这个标志会一直生效
export CFLAGS=