gcc 6.3-->;致命Python错误:Py#u Initialize:无法获取区域设置编码模块NotFoundError:没有名为'的模块;编码';

gcc 6.3-->;致命Python错误:Py#u Initialize:无法获取区域设置编码模块NotFoundError:没有名为'的模块;编码';,python,gcc,Python,Gcc,我试图安装Python软件包,但在CentOS7中出现以下错误: Fatal Python error: Py_Initialize: Unable to get the locale encoding ModuleNotFoundError: No module named 'encodings' 完整日志如下: 以下是来自NVIDIA的名为高岭土的包装: 此错误发生在我切换到gcc 6.3并输入以下命令后:python setup.py install 我该怎么修 请注意,最初我有GCC

我试图安装Python软件包,但在CentOS7中出现以下错误:

Fatal Python error: Py_Initialize: Unable to get the locale encoding

ModuleNotFoundError: No module named 'encodings'
完整日志如下:

以下是来自NVIDIA的名为高岭土的包装:

此错误发生在我切换到gcc 6.3并输入以下命令后:
python setup.py install

我该怎么修

请注意,最初我有GCC 7,我使用以下命令移动到GCC 6.3(似乎CUDA与GCC 7存在兼容性问题,因此我不得不切换):

现在我有:

$ 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.

我使用以下命令修复了该问题:

$ conda create -p /scratch3/3d_pose/kaolin_env python=3.6 numpy cython pytorch-gpu "matplotlib<3.0.0" scikit-image shapely "trimesh>=3.0" scipy sphinx "pytest>=4.6" "pytest-cov>=2.7" tqdm Cython autopep8 flake8

$ conda activate /scratch3/3d_pose/kaolin_env

$ pip install pptk

$ python setup.py install
$conda create-p/scratch3/3d_pose/kalin_env python=3.6 numpy cython pytorch gpu“matplotlib=3.0”scipy sphinx“pytest>=4.6”pytest cov>=2.7”tqdm cython autopep8
$conda激活/scratch3/3d_姿势/高岭土_环境
$pip安装pptk
$python setup.py安装

导入高岭土的
仍然会抛出一个错误,即使来自。。高岭土回购的问题。

如果搜索此错误,您是否检查了出现的其他问题,例如?因此修复程序适用于Windows 10。我的问题出现在CentOS 7中。我想知道这是因为可能不正确的方式切换到GCC 6?
$ 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.
$ conda create -p /scratch3/3d_pose/kaolin_env python=3.6 numpy cython pytorch-gpu "matplotlib<3.0.0" scikit-image shapely "trimesh>=3.0" scipy sphinx "pytest>=4.6" "pytest-cov>=2.7" tqdm Cython autopep8 flake8

$ conda activate /scratch3/3d_pose/kaolin_env

$ pip install pptk

$ python setup.py install