可以提前安装
yum install gcc curl-devel python3-devel -y
centos7安装pycurl报错
pip install pycurl
报错一:Could not run curl-config: [Errno 2] No such file or directory: ‘curl-config’: 'curl-config
解决:yum install curl-devel -y
报错二:unable to execute ‘gcc’: No such file or directory
error: command ‘gcc’ failed with exit status 1
解决:yum install gcc -y
报错三:src/pycurl.h:5:20: fatal error: Python.h: No such file or directory
#include <Python.h>
解决:yum install python3-devel -y