Installing PyQt5 and pyqtgraph via PyPi on Python 3.5 leads to ImportError?

1,704 views
Skip to first unread message

nvdw

unread,
Mar 13, 2017, 2:52:19 PM3/13/17
to pyqtgraph
Hi,

I am having trouble installing pyqtgraph via PyPi. I did the following:

- created a clean anaconda environment with Python 3.5 (3.5.3)
- installed PyQt5 (5.8.1) via pip. importing PyQt5 from the python prompt worked correctly.
- installed pyqtgraph (0.10.0) via pip.
- importing pyqtgraph from a python prompt results in an ImportError:

Any idea what might have gone wrong?
Is this procedure not the recommended way of installing pyqtgraph?


(test) C:\Users\vandewin>python
Python 3.5.3 |Continuum Analytics, Inc.| (default, Feb 22 2017, 21:28:42) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyqtgraph
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\vandewin\AppData\Local\Continuum\Anaconda2\envs\test\lib\site-packages\pyqtgraph\__init__.py", line 13, in <module>
    from .Qt import QtGui
  File "C:\Users\vandewin\AppData\Local\Continuum\Anaconda2\envs\test\lib\site-packages\pyqtgraph\Qt.py", line 153, in <module>
    from PyQt5 import QtGui, QtCore, QtWidgets, uic
ImportError: DLL load failed: The specified module could not be found.



nvdw

unread,
Mar 13, 2017, 3:54:15 PM3/13/17
to pyqtgraph
Nevermind, the problem lies with the PyQt5 wheel for python 3.5, not with pyqtgraph.


the successful test:
import PyQt5
was a false positive.

from PyQt5 import QtCore
fails, hence indicating it has nothing to do with pyqtgraph.

nvdw

unread,
Mar 15, 2017, 10:30:35 AM3/15/17
to pyqtgraph
Apparently, the root cause of the problem is not with PyQt5, but with the Anaconda environment, missing python3.dll:
Reply all
Reply to author
Forward
0 new messages