无法导入PyQtCh

2024-09-28 20:46:37 发布

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

我已经安装了PyQt5.13,并且我已经使用pip3 install PyQtChart==5.13安装了相同版本的PyQtChart

安装没有问题,但是我不能导入PyQtChart,你可以看到截图,iam使用Pycharm IDE,当我运行代码时它告诉我这个错误:也iam使用Python 3.6

from PyQt5.QtChart import QChart, QChartView, QHorizontalBarSeries, QBarSet, QBarCategoryAxis, QValueAxis
RuntimeError: the sip module implements API v12.0 to v12.6 but the PyQt5.QtChart module requires API v12.7

enter image description here

enter image description here


Tags: installthe代码from版本api错误pip3