No module named ‘encodings‘(python3.5+)

问题

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

No module named 'encodings'

Current thread 0x00007f95c1ec0700 (most recent call first):

环境:ubuntu18.04
python版本:python3.5之后的版本

解决办法Linux命令执行:

unset PYTHONHOME
unset PYTHONPATH


原文链接:No module named 'encodings' (Python3.5 +)

你可能感兴趣的:(encodings,Py_Initialize,0x00007f95c1)