LinMinquan's Blog

Experience technology to change life

error: command ‘gcc’ failed with exit status 1

环境:CentOS 6.8, python 2.6.6,  virtualenv 15.1.0

我是在virtualenv里,想要在里面安装mysql-python,但老报错

error: command 'gcc' failed with exit status 1

参考文章:http://blog.csdn.net/fenglifeng1987/article/details/38057193

退出virtualenv

deactivate

然后输入以下命令

yum install gcc libffi-devel python-devel openssl-devel

不过这三个东西分别是什么用途呢?


Share