Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • 1
    Have you tried these solutions here?
    – Ramhound
    Commented Jun 11, 2023 at 18:07
  • Yes, I have. It works on my Macbook, however, the problem is unsolved in Rocky Linux 9 on my Desktop which is the main device for my development. Commented Jun 11, 2023 at 18:14
  • You say you've researched around, but you do not say what you've tried to do to fix things and the outcome of those efforts. Can you please use the EDIT button and add missing information to your question to make it more clear and complete. Commented Jun 12, 2023 at 4:45
  • Try sudo yum install python3-devel. The key to solving your problem is to understand what the file Python.h is, what it is used for, and why it is missing from your system. When you see lines that start with gcc, that means that the package requires compilation and parts of the package are written in C or C++. python-dev contains the header files you need to build Python packages and extensions that are written in C or C++. This link will help you learn more. Commented Jun 22, 2023 at 4:25