Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What if the Python.h without that file or directory encountered a fatal error in Ubuntu

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article is about what to do if Python.h doesn't have that file or directory when you encounter a fatal Ubuntu error. Xiaobian thinks it is quite practical, so share it with everyone as a reference. Let's follow Xiaobian and have a look!

Eventlet was installed on ubuntu machine in lab today. There was an error when installing dependency package greenlet. There was a compilation error.

The error is as follows:

In file included from greenlet.c:5:0:greenlet.h:8:20: fatal error: Python.h: no file or directory

Compilation interrupt.

error: Setup script exited with error: command 'gcc' failed with exit status 1

The workaround is to install python-dev, which is Python's header file and static library package:

sudo apt-get install python-dev Thank you for reading! About "encounter Ubuntu fatal error Python.h does not have that file or directory how to do" This article is shared here, I hope the above content can be of some help to everyone, so that we can learn more knowledge, if you think the article is good, you can share it to let more people see it!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report