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

question

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

No module named 'encodings'

Current thread 0x00007f95c1ec0700 (most recent call first):

Environment: ubuntu18.04
python version: version after python3.5

Solution Linux command execution:

unset PYTHONHOME
unset PYTHONPATH


Original link: No module named 'encodings' (Python3.5 +)

Guess you like

Origin blog.csdn.net/weixin_39842528/article/details/123468162