Wiki » History » Version 3

David PICARD, 03/02/2015 10:14 AM

1 1 David PICARD
h1. Install
2 1 David PICARD
3 3 David PICARD
Required software :
4 3 David PICARD
5 3 David PICARD
* "Numpy":http://www.numpy.org/ : array manipulation.
6 3 David PICARD
* "Scipy":http://www.scipy.org/ : scientific library.
7 3 David PICARD
* "PySide":http://qt-project.org/wiki/PySide : "Qt":http://qt-project.org/ bindings for Python.
8 3 David PICARD
* "PyQtGraph":http://pyqtgraph.org/ : scientific sraphics and GUI library for Python.
9 3 David PICARD
* "PyOpenGL":http://pyopengl.sourceforge.net/ : Python OpenGL binding. Some classes of PyQtGraph require PyOpenGL.
10 3 David PICARD
11 1 David PICARD
h2. Windows
12 1 David PICARD
13 2 David PICARD
*Python*
14 2 David PICARD
15 1 David PICARD
Get "Algorete":http://algorete.org/, a Python distribution with a package manager. Download the "mini" version, and reboot, so the PATH environment variable is updated everywhere in the system. Default install directory : C:\Loopy.
16 1 David PICARD
17 1 David PICARD
To get help about the package manager, type the following command in a *DOS prompt*, not a Git/bash shell :
18 3 David PICARD
19 1 David PICARD
@> apkg help
20 1 David PICARD
@
21 1 David PICARD
22 1 David PICARD
Install the required packages :
23 3 David PICARD
24 1 David PICARD
@> apkg install matplotlib numpy scipy pyside
25 2 David PICARD
@
26 2 David PICARD
27 2 David PICARD
*PyQtGraph*
28 1 David PICARD
29 3 David PICARD
The installer has a bug (it won't find Python and the dialog is write protected). The workaround is to get the source code. The archive contains a "pyqtgraph" directory that contains __init__.py, colormap.py, etc. Copy this directory to C:\Loopy\Lib\site-packages. The PyQtGraph module can now be imported in Python.
30 2 David PICARD
31 1 David PICARD
*PyOpenGL*
32 1 David PICARD
33 3 David PICARD
Get the zip, extract and type :
34 3 David PICARD
35 2 David PICARD
@$ python setup.py install
36 2 David PICARD
@
37 2 David PICARD
38 2 David PICARD
Default install directory C:\Loopy\Lib\site-packages\OpenGL.
39 2 David PICARD
40 1 David PICARD
41 1 David PICARD
h2. Linux Ubuntu
42 1 David PICARD
43 1 David PICARD
*Python*
44 1 David PICARD
45 3 David PICARD
On Linux, Python is installed by default. Install Python packages :
46 3 David PICARD
47 3 David PICARD
@# apt-get install python-matplotlib python-numpy python-scipy python-pyside
48 3 David PICARD
@
49 3 David PICARD
50 3 David PICARD
*PyQtGraph*
51 3 David PICARD
52 3 David PICARD
Download the .deb file linked at the top of the "page":http://www.pyqtgraph.org/. Then install the package :
53 3 David PICARD
54 3 David PICARD
# dpkg -i python-pyqtgraph_xx.xx.xx-x_all.deb
55 3 David PICARD
56 3 David PICARD
*PyOpenGL*
57 3 David PICARD
58 3 David PICARD
59 3 David PICARD
@apt-get install python-pip
60 3 David PICARD
@
61 2 David PICARD
62 1 David PICARD
h2. Mac OS X
63 2 David PICARD
64 2 David PICARD
*Python*
65 2 David PICARD
66 2 David PICARD
On OS X, Python is installed by default.