undefined symbol: PyUnicodeUCS4_AsUTF8String

python 默认是ucs2编码进行编译,重新编译使用ucs4.

python:     ./configure --enable-unicode=ucs4        make && make install

将使用usc2编码的卸掉在重装 。

原文地址:https://www.cnblogs.com/bob-wzb/p/5959142.html