关于command 'gcc' failed with exit status 1 解决方法

it2022-05-09  51

Python踩坑之路


Setup script exited with error: command 'gcc' failed with exit status 1

由于没有正确安装Python开发环境导致。

Debin/Ubuntu

Python2sudo apt-get install python-dev

Python3sudo apt-get install python3-dev 可能需要libevent库sudo apt-get install libevent-dev 最后更新下开发环境sudo apt-get groupinstall 'development tools'

Centos/Fedora

sudo yum install python-develsudo yum install libevent-develeasy_install gevent 或者pip install gevent 把环境更新下sudo yum install groupinstall 'development tools'

转载于:https://www.cnblogs.com/gerrydeng/p/7159021.html


最新回复(0)