About the Python installation module appears error:command ' GCC ' failed with exit status 1 error resolution __python

Source: Internet
Author: User

When using the PIP install # # #时, sometimes there will be problems like the title, and the problems I have encountered are as follows:

_posixsubprocess.c:3:20:fatal error:python.h:no such file or directory
     #include "Python.h"
                        ^
    compilation Terminated.
    Error:command ' gcc ' failed with exit status 1

This is the problem I had when I installed the Matplotlib module, I reinstalled the GCC and everything I could think of, but I couldn't. On the internet to find a bit, said it is actually installed a corresponding devel environment can be.
For example, I'm here to give an error

#include "Python.h"
       ^
compilation terminated.
Error:command ' gcc ' failed with exit status 1

In fact, as long as the need to see what is missing, I lack of Python.h, so install the following Python devel environment is good

Yum Install Python-devel

Other similar problems, corresponding to download the corresponding devel environment.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.