尝试导入QtCore
from PyQt5 import QtCore
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: dlopen(/usr/local/lib/python2.7/site-packages/PyQt5/QtCore.so, 2): Symbol not found: _PyBytes_FromString
Referenced from: /usr/local/lib/python2.7/site-packages/PyQt5/QtCore.so
Expected in: flat namespace
in /usr/local/lib/python2.7/site-packages/PyQt5/QtCore.so
答案 0 :(得分:0)
您可以通过更新PyQt5 (instructions here, although they're currently temporarily offline)和pyqt_tools(可以使用pip来解决)来解决这个问题。