error: command ‘gcc’ failed with exit status 1

error: command ‘gcc’ failed with exit status 1 的解决办法

用pip安装软件或者编译python模块的时候提示:error: command ‘gcc’ failed with exit status 1

easy_install也提示一样的错误:error: Setup script exited with error: command ‘gcc’ failed with exit status 1

一般是缺少python-dev包
apt-get install python-dev或yum install python-devel这样就行了

猜你喜欢

转载自blog.csdn.net/yypzye/article/details/52059941