Wiki » History » Version 7

Version 6 (David PICARD, 03/02/2015 05:29 PM) → Version 7/9 (David PICARD, 03/02/2015 05:34 PM)

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 pyside-tools
@

*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 install python-pip
@

Install PyOpenGL :

@$ pip install PyOpenGL PyOpenGL_accelerate
@

h2. Mac OS X

*Python*

On OS X, Python is installed by default.

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). recommended. 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/...

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*

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.

*PyOpenGL*

Install pip :

@# port install py-pip
@

Find the pip executable, and install PyOpenGL :

@# pip install PyOpenGL PyOpenGL_accelerate
@