Problem with installing PyQtChart (Python 3.7, PyQt5)

1k views Asked by At
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?

1

There are 1 answers

0
Ata On

If I were you my friend, I would try to find a separate file with an extension of .whl and install it via CMD... It could handle your problem. Just google for a pyqt.whl wheel file extension and then learn how to install it within CMD.