Install for windows (FAQ?)

959 views
Skip to first unread message

jonathan cano

unread,
Apr 17, 2014, 3:27:50 PM4/17/14
to pyqt...@googlegroups.com
I've used python in the distant past on Linux and FreeBSD.  I know the language but have no recollection of install and package management norms.

I have not used python on windows.

I want to use pyqtgraph on my Windows 7 machine.  What do I need to install and in what order?  Here is my guess

  1. Python for windows (2.7 or later?  Presumably 3.x is better)
  2. QT for windows?
  3. pyqtgraph (duh)
do I need to set any environment after installing various components?


Luke Campagnola

unread,
Apr 17, 2014, 8:54:08 PM4/17/14
to pyqt...@googlegroups.com
On Thu, Apr 17, 2014 at 3:27 PM, jonathan cano <fun...@gmail.com> wrote:
I've used python in the distant past on Linux and FreeBSD.  I know the language but have no recollection of install and package management norms.

I have not used python on windows.

I want to use pyqtgraph on my Windows 7 machine.  What do I need to install and in what order?  Here is my guess

1. Python 2.7 or 3.4 from python.org. You may pick either the 32- or 64-bit versions.
2. Latest numpy. The easiest place for these is: http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy
     Be sure to get the version that matches your python installation.
3. For pyqtgraph <=0.9.8, you will also need scipy: http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy
     If you want to use the latest development code instead, then scipy is no longer required.
     Note: The PyQt windows installer includes the necessary Qt DLLs. Alternatively, you may use PySide.
5. PyQtGraph. Version 0.9.8 can be found on the website, or you can pull the latest code from github:
 
do I need to set any environment after installing various components?

On windows, I usually add "C:\Python27" to the end of the PATH environment variable so that I can run python more easily from the command line.

amdo...@gmail.com

unread,
Apr 18, 2014, 3:06:00 PM4/18/14
to pyqt...@googlegroups.com
An alternative approach is to use the excellent WinPython distribution - http://winpython.sourceforge.net/. Its a single package you download that includes python, most of the popular packages (numpy, scipy, etc), and qt support (both PyQt and PySide). It does not include pyqtgraph by default, but the installer for version 0.9.8 can be used through WinPython's package manager to easily install it. Probably the easiest way to get it working.

Also, I've had fairly good luck doing Python 3, as most of the major packages support it now, and pyqtgraph seems to run well under it now.  

Namarata Mohapatra

unread,
May 26, 2015, 10:46:51 AM5/26/15
to pyqt...@googlegroups.com
I have downloaded : PyQtGraph. Version 0.9.8 can be found on the website, or you can pull the latest code from github:
For Windows X64. However I get an error with import pyqtgraph 

from .Qt import QtGui 
ImprortError : No module names Qt 

Mathew Schwartz

unread,
May 26, 2015, 7:49:10 PM5/26/15
to pyqt...@googlegroups.com
Did you install the pyQT 64 bit version?  also try 

from PyQt4 import QtCore, QtGui

--
You received this message because you are subscribed to the Google Groups "pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyqtgraph+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/ae6c10ad-1eab-430d-b4d6-ffdf7031b823%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Mathew Schwartz

unread,
May 26, 2015, 7:49:58 PM5/26/15
to pyqt...@googlegroups.com
also that is an error with pyqt, not pyqtgraph, which you import as:

import pyqtgraph as pg

and for opengl;

import pyqtgraph.opengl as gl

Luke Campagnola

unread,
May 26, 2015, 9:06:31 PM5/26/15
to pyqt...@googlegroups.com
The ".Qt" module referenced above is pyqtgraph's internal wrapper around PyQt/PySide. It's hard to say exactly why it is failing, though. I suspect the package was not installed correctly or is not being invoked correctly. Can you give more information about what you have done:

* What are you running that produces this error? (also post the full traceback)
* What environment are you using invoke python (command line, IDE, etc)?
* How did you install pyqtgraph?

Reply all
Reply to author
Forward
0 new messages