Wiki » History » Version 4

Version 3 (David PICARD, 03/02/2015 10:14 AM) → Version 4/9 (David PICARD, 03/02/2015 10:20 AM)

h1. Install

Required software :

* "Numpy":http://www.numpy.org/ : array manipulation.
* "Scipy":http://www.scipy.org/ : scientific library.
* "PySide":http://qt-project.org/wiki/PySide : "Qt":http://qt-project.org/ bindings for Python.
* "PyQtGraph":http://pyqtgraph.org/ : scientific sraphics and GUI library for Python.
* "PyOpenGL":http://pyopengl.sourceforge.net/ : Python OpenGL binding. Some classes of PyQtGraph require PyOpenGL.
* The source code of the project, from the "repository":http://forge.clermont-universite.fr/projects/protron/repository.


h2. Windows

*Python*

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.

To get help about the package manager, type the following command in a *DOS prompt*, not a Git/bash shell :

@> apkg help
@

Install the required packages :

@> apkg install matplotlib numpy scipy pyside
@

*PyQtGraph*

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.

*PyOpenGL*

Get the zip, extract and type :

@$ python setup.py install
@

Default install directory C:\Loopy\Lib\site-packages\OpenGL.

h2. Linux Ubuntu

*Python*

On Linux, Python is installed by default. Install Python packages :

@# apt-get install python-matplotlib python-numpy python-scipy python-pyside
@

*PyQtGraph*

Download the .deb file linked at the top of the "page":http://www.pyqtgraph.org/. Then install the package :

@# # dpkg -i python-pyqtgraph_xx.xx.xx-x_all.deb
@


*PyOpenGL*

Install Python's package manager :

@# apt-get


@apt-get
install python-pip
@

Install PyOpenGL :

@$ pip install PyOpenGL PyOpenGL_accelerate

@

h2. Mac OS X

*Python*

On OS X, Python is installed by default.