from PyQt5.QtChart import QChart, QChartView
I get this error:
«ModuleNotFoundError: No module named 'PyQt5.QtChart'»
According to the answer, Cannot import PyQtChart in Python 3.7 fulfilled recommendations:
python -m pip install PyQt5==5.14 PyQtChart==5.14
and:
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.
The versions are the same 5.14.0 (PyQt5) and 5.14.0 (PyQtChart), but there is the error of «ModuleNotFoundError: No module named 'PyQt5.QtChart'»
So, I was wondering what the problem is?