Python 安装出错:Setup script exited with error: command 'gcc' failed with exit status 1

退出当前环境:

logout (再重新登录进去)

yum install python-devel  -y
yum install libevent-devel  -y

把环境更新下
yum install groupinstall 'development tools'  -y

原文地址:https://www.cnblogs.com/kaishirenshi/p/9964421.html