gcc 6.3 –> Fatal Python error: Py_Initialize: Unable to get the locale encoding ModuleNotFoundError: No module named ‘encodings’

I am trying to install a Python package and I get this error in CentOS7: Fatal Python error: Py_Initialize: Unable to get the locale encoding ModuleNotFoundError: No module named ‘encodings’ Complete log is here: https://pastebin.com/raw/xs6zFKVg Here is the package named Kaolin from NVIDIA: https://github.com/NVIDIAGameWorks/kaolin This error happens after I switch to gcc 6.3 and enter…