SvennD
Centos 8 : python-devel
August 4, 2020

Centos 8 : python-devel

Posted on August 4, 2020  •  1 minutes  • 100 words  •  Suggest Changes

You might find when you receive this error :

fatal error: Python.h: No such file or directory

The solution on Centos is to install python-devel package; In Centos 8 however this package was renamed due to the fact python 2.7 is no longer the default one, it has become 3. And this package was named w/o any suggestions;

[root@serverexamples]# yum install python-devel
Last metadata expiration check: 2:41:52 ago on Tue 04 Aug 2020 01:19:19 PM CEST.
No match for argument: python-devel
Error: Unable to find a match: python-devel

The solution is to add python version number :

yum install python3-devel

Support

If you enjoyed this website, consider buying me a Dr. Pepper

Buy me a Dr PepperBuy me a Dr Pepper