2

我在 PYTHONPATH 中包含了一些目录并得到了异常

Fatal Python error: Py_Initialize: Unable to get the locale encoding
Traceback (most recent call last):
  File "/usr/lib/python3.6/encodings/__init__.py", line 31, in <module>
  File "/home/dimskraft/MYPATH/library/python/codecs/__init__.py", line 1, in <module>
ModuleNotFoundError: No module named '__codecs'
Aborted (core dumped)

尽管如此

cat /home/dimskraft/MYPATH/library/python/codecs/__init__.py
from __codecs import loads, dumps, list_all_codecs  # noqa


ls /home/dimskraft/MYPATH/library/python/codecs
__codecs.pyx  gen_corpus  __init__.py  __init__.pyc  __pycache__  test  ya.make

所以,它看不到__codecs.pyx,它仍然存在。

如何教它看?

4

0 回答 0