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.