导入 glib 失败:
ImportError:/usr/lib/python2.7/dist-packages/glib/_glib.so: undefined symbol: PyUnicodeUCS4_DecodeUTF8
我该如何解决这个问题?
Python 版本为 Python 2.7.3rc2。操作系统是 Debian。
最佳答案
该模块是针对使用 UCS-4 作为其内部 unicode
表示形式构建的 Python 构建的。您的 Python 是使用 UCS-2 作为其内部表示构建的。重建模块,或重建 Python。
the official FAQ 中提到了这个问题.这是深入讨论的in python issue 8654 .
关于python - 试图导入模块 : undefined symbol: PyUnicodeUCS4_DecodeUTF8,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16871799/