在Python3.5上的PyQt:ImportError:/usr/local/lib/python3.5/site-packages/PyQt5/QtCore.so:未定义的符号:PySlice_AdjustIndices

时间:2018-09-19 15:13:36

标签: python python-3.x pyqt5

我正在尝试在python3.5(linux)上使用PyQt5,但是我一生无法获得要导入的模块:

$ python3.5
Python 3.5.1 (default, Apr 10 2016, 14:34:46) 
[GCC 5.2.1 20151010] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from PyQt5 import QtWidgets
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: /usr/local/lib/python3.5/site-packages/PyQt5/QtCore.so: undefined symbol: PySlice_AdjustIndices
>>> from PyQt5 import QtCore
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: /usr/local/lib/python3.5/site-packages/PyQt5/QtCore.so: undefined symbol: PySlice_AdjustIndices
>>> 

但是导入PyQt5可以...

>>> import PyQt5
>>> 

我已经在Internet上进行了搜索,但似乎找不到办法。

任何帮助将不胜感激!

谢谢, 鲍勃

0 个答案:

没有答案