安装PyQtChart(Python 3.7,PyQt5)时出现问题

2024-06-28 20:01:57 发布

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

from PyQt5.QtChart import QChart, QChartView

我得到这个错误:

«ModuleNotFoundError:没有名为'PyQt5.QtChart'的模块»

根据答复,Cannot import PyQtChart in Python 3.7落实了以下建议: python -m pip install PyQt5==5.14 PyQtChart==5.14

以及:

C:\P>pip3 search PyQt5
PyQt5-sip (12.7.2)                - The sip module support for PyQt5
  INSTALLED: 12.7.2 (latest)
PyQt5 (5.14.2)                    - Python bindings for the Qt cross platform application toolkit
  INSTALLED: 5.14.0
  LATEST:    5.14.2

C:\P>pip3 search PyQtChart
PyQtChart (5.14.0)  - Python bindings for the Qt Charts library
  INSTALLED: 5.14.0 (latest)
QCharted (1.1.1)    - Plotting large data series using PyQtChart.

版本与5.14.0(PyQt5)和5.14.0(PyQtChart)相同,但存在«ModuleNotFoundError:没有名为'PyQt5.QtChart'的模块»错误

所以,我想知道问题是什么


Tags: 模块installedtheimportforsearch错误pip3
1条回答
网友
1楼 · 发布于 2024-06-28 20:01:57

如果我是你我的朋友,我会尝试找到一个扩展名为.whl的单独文件,并通过CMD安装它。。。它可以解决你的问题。只需在谷歌上搜索pyqt.whl wheel文件扩展名,然后学习如何在CMD中安装它

相关问题 更多 >