NB if you are extending a Python 3.8 environment: If you are using a python package the builds from source and requires the Python development headers (Python.h) , then the include folders needs to be passed as build options to pip manually. The following command shows how:
pip install --global-option=build_ext --global-option="-I/opt/rh/rh-python38/root/usr/include/python3.8" <your_package>
Bottom of https://fmu-docs.equinor.com/docs/komodo/equinor_komodo_usage.html