gpt4 book ai didi

python - sip 模块实现了 API v11.0 到 v11.2 但 PyQt5.QtCore 模块需要 API v11.3

转载 作者:行者123 更新时间:2023-11-28 18:27:46 25 4
gpt4 key购买 nike

我对这个错误有疑问。作为记录,我使用的是 PyQt4。感谢您的帮助!

 (C:\Users\ewasn\Anaconda2) C:\Users\ewasn\Desktop\DataShift>python data_inconsistency_api.py
Traceback (most recent call last):
File "data_inconsistency_api.py", line 9, in <module>
from multivariate_outliers import MultivariateOutliers
File "C:\Users\ewasn\Desktop\DataShift\multivariate_outliers.py", line 8, in <module>
import matplotlib.pyplot as plt
File "C:\Users\ewasn\Anaconda2\lib\site-packages\matplotlib\pyplot.py", line 114, in <module>
_backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
File "C:\Users\ewasn\Anaconda2\lib\site-packages\matplotlib\backends\__init__.py", line 32, in pylab_setup
globals(),locals(),[backend_name],0)
File "C:\Users\ewasn\Anaconda2\lib\site-packages\matplotlib\backends\backend_qt5agg.py", line 16, in <module>
from .backend_qt5 import QtCore
File "C:\Users\ewasn\Anaconda2\lib\site-packages\matplotlib\backends\backend_qt5.py", line 27, in <module>
import matplotlib.backends.qt_editor.figureoptions as figureoptions
File "C:\Users\ewasn\Anaconda2\lib\site-packages\matplotlib\backends\qt_editor\figureoptions.py", line 17, in <module>
import matplotlib.backends.qt_editor.formlayout as formlayout
File "C:\Users\ewasn\Anaconda2\lib\site-packages\matplotlib\backends\qt_editor\formlayout.py", line 58, in <module>
from matplotlib.backends.qt_compat import QtGui, QtWidgets, QtCore
File "C:\Users\ewasn\Anaconda2\lib\site-packages\matplotlib\backends\qt_compat.py", line 127, in <module>
from PyQt5 import QtCore, QtGui, QtWidgets
RuntimeError: the sip module implements API v11.0 to v11.2 but the PyQt5.QtCore module requires API v11.3

最佳答案

我通过使用 pip 卸载并重新安装 sip 解决了这个问题。

pip uninstall sip
pip install sip

只是进行升级可能也有效,但我在升级过程中遇到错误,因为文件正在使用中。

在 Anaconda 中执行等效操作可能会解决问题。

关于python - sip 模块实现了 API v11.0 到 v11.2 但 PyQt5.QtCore 模块需要 API v11.3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40053422/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com