Wiki » History » Version 7

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

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 5 David PICARD
@# apt-get install python-matplotlib python-numpy python-scipy python-pyside pyside-tools
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.
75 6 David PICARD
76 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/...
77 6 David PICARD
78 6 David PICARD
To get help about the package manager, type the following command in a *DOS prompt*, not a Git/bash shell :
79 6 David PICARD
80 6 David PICARD
@> apkg help
81 6 David PICARD
@
82 6 David PICARD
83 6 David PICARD
Install the required packages :
84 6 David PICARD
85 6 David PICARD
@> apkg install matplotlib numpy scipy pyside
86 6 David PICARD
@
87 6 David PICARD
88 6 David PICARD
*PyQtGraph*
89 6 David PICARD
90 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.
91 6 David PICARD
92 6 David PICARD
*PyOpenGL*
93 6 David PICARD
94 6 David PICARD
Install pip :
95 6 David PICARD
96 6 David PICARD
@# port install py-pip
97 6 David PICARD
@
98 6 David PICARD
99 6 David PICARD
Find the pip executable, and install PyOpenGL :
100 6 David PICARD
101 6 David PICARD
@# pip install PyOpenGL PyOpenGL_accelerate
102 6 David PICARD
@