Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask question.(5)

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

ITtutoria

ITtutoria Logo ITtutoria Logo

ITtutoria Navigation

  • Python
  • Java
  • Reactjs
  • JavaScript
  • R
  • PySpark
  • MYSQL
  • Pandas
  • QA
  • C++
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Python
  • Science
  • Java
  • JavaScript
  • Reactjs
  • Nodejs
  • Tools
  • QA
Home/ Questions/Quick solution to fix error: command 'gcc' failed with exit status 1 error
Next
Answered
Maël Prigent
  • 14
Maël Prigent
Asked: May 11, 20222022-05-11T18:54:24+00:00 2022-05-11T18:54:24+00:00In: Programs

Quick solution to fix error: command ‘gcc’ failed with exit status 1 error

  • 14

. Advertisement .

..3..

. Advertisement .

..4..

Here is a code for the programs, and for some strange reason, I got the warning text:

Running greenlet-0.3.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-_httHYm/greuulet-
0.3.4/egg-dist-tmp-t9_gbW In file included from greenlet.c:5:0: greenlet.h:9:20: fatal error: Python.h: No such file or directory compilation terminated. error: Setup script exited with error: command 'gcc' failed with exit status 1`

Even though I copied some suggestion codes, It does not work. What can I do for the error: command ‘gcc’ failed with exit status 1 issue? Is there a better approach?

command 'gcc' failed
  • 2 2 Answers
  • 84 Views
  • 0 Followers
  • 0
Answer
Share
  • Facebook
  • Report

2 Answers

  • Voted
  • Oldest
  • Recent
  • Random
  1. Best Answer
    lyytutoria Expert
    2022-05-29T02:05:45+00:00Added an answer on May 29, 2022 at 2:05 am

    The cause:  The “fatal error: Python.h: No such file or directory” expression in the 4th  line explains what the cause is. It simply says that the Python development library or packages are not installed or found. Solution: 

    Install Up-to-Date GCC

    Ubuntu, Debian, Mint, Kali:

    sudo apt update gcc

    CentOS, RHEL, Fedora:

    sudo dnf update gcc

    MacOSX:

    brew install gcc

    Install Build Essentials

    Ubuntu, Debian, Mint, Kali:

    sudo apt install build-essential

    CentOS, RHEL, Fedora:

    sudo dnf install build-essential

    Install Python Development Packages

    Ubuntu, Debian, Mint, Kali:

    sudo apt install python-dev 
    sudo apt install python3-dev

    CentOS, RHEL, Fedora:

    sudo dnf install python-devel
    sudo dnf install python3-devel

    Install libffi, libxslt and openssl Development Packages

    Ubuntu, Debian, Mint, Kali:

    sudo apt install libxslt-dev libffi-dev libssl-dev

    CentOS, RHEL, Fedora:

    sudo dnf install libxslt-devel libffi-devel openssl-devel
    • 19
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  2. Adam Lucas
    2022-05-25T19:27:10+00:00Added an answer on May 25, 2022 at 7:27 pm

    For Fedora:

    sudo yum install python-devel
    
    sudo yum install libevent-devel

    And finally:

    sudo easy_install gevent
    • 22
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

Sidebar

Ask A Question
  • How to Split String by space in C++
  • How To Convert A Pandas DataFrame Column To A List
  • How to Replace Multiple Characters in A String in Python?
  • How To Remove Special Characters From String Python

Explore

  • Home
  • Tutorial

Footer

ITtutoria

ITtutoria

This website is user friendly and will facilitate transferring knowledge. It would be useful for a self-initiated learning process.

@ ITTutoria Co Ltd.

Tutorial

  • Home
  • Python
  • Science
  • Java
  • JavaScript
  • Reactjs
  • Nodejs
  • Tools
  • QA

Legal Stuff

  • About Us
  • Terms of Use
  • Privacy Policy
  • Contact Us

DMCA.com Protection Status

Help

  • Knowledge Base
  • Support

Follow

© 2022 Ittutoria. All Rights Reserved.

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.