from PyQt5.QtChart import QChart, QChartView我知道这个错误:
ModuleNotFoundError:没有名为‘PyQt5.Qt图表’的模块?
根据答案,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.Qt图表’的模块出现了错误。
所以,我想知道是什么问题?
发布于 2020-04-14 17:27:18
如果我是你我的朋友,我会试图找到一个单独的文件,扩展名为.whl,并通过CMD安装它.它能解决你的问题。只需谷歌一个pyqt.whl车轮文件扩展名,然后学习如何安装它在CMD。
https://stackoverflow.com/questions/61213176
复制相似问题