简体   繁体   中英

error: command 'gcc' failed with exit status 1 on centos 6.5

When I try to install pyodbc on centos6.5 for python3.4 and django1.8 I have this error:

在此处输入图片说明

Someone can help me to fix this error.

The best way to correct gcc problem:

You need to reinstall gcc , gcc-c++ and dependencies.

For python 2.7

$ sudo yum -y install gcc gcc-c++ kernel-devel $ sudo yum -y install python-devel libxslt-devel libffi-devel openssl-devel $ pip install "your python packet"

For python 3.4

$ sudo apt-get install python3-dev $ pip install "your python packet"

If you are using Python 3 use:

sudo yum install python3-devel

Adding version to the command solved this issue for me.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM