Linux下Python3.5使用pyqt5.11报错 ImportError: /usr/local/lib/python3.5/dist-packages/PyQt5/QtCore.so: und

我用的Linux自带的是Python3.5版本,运行pip3 install PyQt5, 下载的是PyQt5.11,运行PyQt5程序会报错:python

ImportError: /usr/local/lib/python3.5/dist-packages/PyQt5/QtCore.so: undefined symbol: PySlice_AdjustIndices测试

 

解决方法:ip

删除PyQt5.11pip

pip3 uninstall PyQt5python3.5

从新安装PyQt5.10版本,就没有错误了下载

pip3 install "PyQt5<5.11"程序

 

另外测试,升级最新Python3.6或3.7版本后,用最新PyQt5.11也不会有错误。方法

相关文章
相关标签/搜索