Wiki » History » Version 8

David PICARD, 03/02/2015 05:34 PM

1 8 David PICARD
{{toc}}
2 8 David PICARD
3 1 David PICARD
h1. Install
4 1 David PICARD
5 3 David PICARD
Required software :
6 3 David PICARD
7 3 David PICARD
* "Numpy":http://www.numpy.org/ : array manipulation.
8 3 David PICARD
* "Scipy":http://www.scipy.org/ : scientific library.
9 3 David PICARD
* "PySide":http://qt-project.org/wiki/PySide : "Qt":http://qt-project.org/ bindings for Python.
10 3 David PICARD
* "PyQtGraph":http://pyqtgraph.org/ : scientific sraphics and GUI library for Python.
11 3 David PICARD
* "PyOpenGL":http://pyopengl.sourceforge.net/ : Python OpenGL binding. Some classes of PyQtGraph require PyOpenGL.
12 4 David PICARD
* The source code of the project, from the "repository":http://forge.clermont-universite.fr/projects/protron/repository.
13 3 David PICARD
14 1 David PICARD
h2. Windows
15 1 David PICARD
16 2 David PICARD
*Python*
17 2 David PICARD
18 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.
19 1 David PICARD
20 1 David PICARD
To get help about the package manager, type the following command in a *DOS prompt*, not a Git/bash shell :
21 3 David PICARD
22 1 David PICARD
@> apkg help
23 1 David PICARD
@
24 1 David PICARD
25 1 David PICARD
Install the required packages :
26 3 David PICARD
27 1 David PICARD
@> apkg install matplotlib numpy scipy pyside
28 2 David PICARD
@
29 2 David PICARD
30 2 David PICARD
*PyQtGraph*
31 1 David PICARD
32 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.
33 2 David PICARD
34 1 David PICARD
*PyOpenGL*
35 1 David PICARD
36 3 David PICARD
Get the zip, extract and type :
37 3 David PICARD
38 2 David PICARD
@$ python setup.py install
39 2 David PICARD
@
40 2 David PICARD
41 2 David PICARD
Default install directory C:\Loopy\Lib\site-packages\OpenGL.
42 2 David PICARD
43 1 David PICARD
44 1 David PICARD
h2. Linux Ubuntu
45 1 David PICARD
46 1 David PICARD
*Python*
47 1 David PICARD
48 3 David PICARD
On Linux, Python is installed by default. Install Python packages :
49 3 David PICARD
50 5 David PICARD
@# apt-get install python-matplotlib python-numpy python-scipy python-pyside pyside-tools
51 3 David PICARD
@
52 3 David PICARD
53 3 David PICARD
*PyQtGraph*
54 3 David PICARD
55 3 David PICARD
Download the .deb file linked at the top of the "page":http://www.pyqtgraph.org/. Then install the package :
56 1 David PICARD
57 4 David PICARD
@# dpkg -i python-pyqtgraph_xx.xx.xx-x_all.deb
58 4 David PICARD
@
59 3 David PICARD
60 3 David PICARD
*PyOpenGL*
61 1 David PICARD
62 4 David PICARD
Install Python's package manager :
63 1 David PICARD
64 4 David PICARD
@# apt-get install python-pip
65 4 David PICARD
@
66 4 David PICARD
67 4 David PICARD
Install PyOpenGL :
68 4 David PICARD
69 4 David PICARD
@$ pip install PyOpenGL PyOpenGL_accelerate
70 3 David PICARD
@
71 2 David PICARD
72 1 David PICARD
h2. Mac OS X
73 2 David PICARD
74 2 David PICARD
*Python*
75 2 David PICARD
76 2 David PICARD
On OS X, Python is installed by default.
77 6 David PICARD
78 7 David PICARD
On OS X, Python is installed by default, but a separate distribution is recommended, so packages are easier to upgrade (see system "python packages":https://github.com/MacPython/wiki/wiki/Which-Python#system-python-and-extra-python-packages). Get "Algorete":http://algorete.org/, a Python distribution with a package manager. Download the "mini" version, and start a new terminal, so the PATH environment variable is updated. Default install directory : ~/opt/...
79 6 David PICARD
80 6 David PICARD
To get help about the package manager, type the following command in a *DOS prompt*, not a Git/bash shell :
81 6 David PICARD
82 6 David PICARD
@> apkg help
83 6 David PICARD
@
84 6 David PICARD
85 6 David PICARD
Install the required packages :
86 6 David PICARD
87 6 David PICARD
@> apkg install matplotlib numpy scipy pyside
88 6 David PICARD
@
89 6 David PICARD
90 6 David PICARD
*PyQtGraph*
91 6 David PICARD
92 6 David PICARD
Download the .tar.gz source package linked at the top of the page, extract its contents, and run "python setup.py install" from within the extracted directory.
93 6 David PICARD
94 6 David PICARD
*PyOpenGL*
95 6 David PICARD
96 6 David PICARD
Install pip :
97 6 David PICARD
98 6 David PICARD
@# port install py-pip
99 6 David PICARD
@
100 6 David PICARD
101 6 David PICARD
Find the pip executable, and install PyOpenGL :
102 6 David PICARD
103 6 David PICARD
@# pip install PyOpenGL PyOpenGL_accelerate
104 6 David PICARD
@