Unable to install some pip packages
Issue
Installation of some pip packages fails with various errors like:
unable to execute 'gcc': No such file or directory
error: command 'gcc' failed with exit status 1
psutil/_psutil_common.c:9:20: fatal error: Python.h: No such file or directory
#include <Python.h>
^
compilation terminated.
Environment
- Red Hat Enterprise Linux 7
python3
or Red Hat SCLpython27
orrh-python36
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.