Reprint address: http://www.laozuo.org/10700.html
When I installed the Python library software with pip, I encountered the error "command ' gcc ' failed with exit status 1". It seems that the gcc component is missing , but I did execute yum to install gcc before the installation, but there is still such a problem. So I searched and found that some netizens mentioned the lack of openssl-devel support.
Solution:
yum install gcc libffi-devel python-devel openssl-devel -y
After the execution is complete, go back to the pip install python library command executed before, and no error message is seen after execution.
It seems the problem is solved.