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 this command: python setup.py install
How should I fix it?
Note that, initially I had GCC 7 and I used the following commands to move onto GCC 6.3 (seems like CUDA had compatability problem with GCC 7 so I had to switch):
$ sudo yum install devtoolset-6
and
$ scl enable devtoolset-6 bash
Now I have:
$ gcc --version
gcc (GCC) 6.3.1 20170216 (Red Hat 6.3.1-3)
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I am not sure if what I did above was the best bet or if this must have caused this new issue.