Wiki » History » Version 4

David PICARD, 03/02/2015 10:20 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 4 David PICARD
* The source code of the project, from the "repository":http://forge.clermont-universite.fr/projects/protron/repository.
11 3 David PICARD
12 1 David PICARD
h2. Windows
13 1 David PICARD
14 2 David PICARD
*Python*
15 2 David PICARD
16 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.
17 1 David PICARD
18 1 David PICARD
To get help about the package manager, type the following command in a *DOS prompt*, not a Git/bash shell :
19 3 David PICARD
20 1 David PICARD
@> apkg help
21 1 David PICARD
@
22 1 David PICARD
23 1 David PICARD
Install the required packages :
24 3 David PICARD
25 1 David PICARD
@> apkg install matplotlib numpy scipy pyside
26 2 David PICARD
@
27 2 David PICARD
28 2 David PICARD
*PyQtGraph*
29 1 David PICARD
30 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.
31 2 David PICARD
32 1 David PICARD
*PyOpenGL*
33 1 David PICARD
34 3 David PICARD
Get the zip, extract and type :
35 3 David PICARD
36 2 David PICARD
@$ python setup.py install
37 2 David PICARD
@
38 2 David PICARD
39 2 David PICARD
Default install directory C:\Loopy\Lib\site-packages\OpenGL.
40 2 David PICARD
41 1 David PICARD
42 1 David PICARD
h2. Linux Ubuntu
43 1 David PICARD
44 1 David PICARD
*Python*
45 1 David PICARD
46 3 David PICARD
On Linux, Python is installed by default. Install Python packages :
47 3 David PICARD
48 3 David PICARD
@# apt-get install python-matplotlib python-numpy python-scipy python-pyside
49 3 David PICARD
@
50 3 David PICARD
51 3 David PICARD
*PyQtGraph*
52 3 David PICARD
53 3 David PICARD
Download the .deb file linked at the top of the "page":http://www.pyqtgraph.org/. Then install the package :
54 1 David PICARD
55 4 David PICARD
@# dpkg -i python-pyqtgraph_xx.xx.xx-x_all.deb
56 4 David PICARD
@
57 3 David PICARD
58 3 David PICARD
*PyOpenGL*
59 1 David PICARD
60 4 David PICARD
Install Python's package manager :
61 1 David PICARD
62 4 David PICARD
@# apt-get install python-pip
63 4 David PICARD
@
64 4 David PICARD
65 4 David PICARD
Install PyOpenGL :
66 4 David PICARD
67 4 David PICARD
@$ pip install PyOpenGL PyOpenGL_accelerate
68 3 David PICARD
@
69 2 David PICARD
70 1 David PICARD
h2. Mac OS X
71 2 David PICARD
72 2 David PICARD
*Python*
73 2 David PICARD
74 2 David PICARD
On OS X, Python is installed by default.