在安装autogluon时候提示以下错误
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python3.6m -I/tmp/pip-build-env-w9_ayv83/overlay/lib64/python3.6/site-packages/numpy/core/include -c ConfigSpace/hyperparameters.c -o build/temp.linux-x86_64-3.6/ConfigSpace/hyperparameters.o
ConfigSpace/hyperparameters.c:6:20: 致命错误:Python.h:没有那个文件或目录
#include "Python.h"
^
编译中断。
/tmp/pip-build-env-w9_ayv83/overlay/lib/python3.6/site-packages/setuptools/dist.py:694: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
% (opt, underscore_opt))
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for ConfigSpace
Failed to build ConfigSpace
ERROR: Could not build wheels for ConfigSpace which use PEP 517 and cannot be installed directly
这是因为我的linux上安装了python3 没有编译环境
yum install python3-devel
完美解决