Python3.5上的PyQt:ImportError:/usr/local/lib/Python3.5/sitepackages/PyQt5/QtCore.so公司:未定义符号:PySlice\u adjustIndexs

2024-04-24 23:17:57 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试在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
>>> 

我在网上搜了很多遍,但似乎找不到一条出路。你知道吗

任何帮助都将不胜感激!你知道吗

谢谢你, 鲍勃


Tags: infromimportmostlinuxstdinlinecall