Wiki » History » Version 7

« Previous - Version 7/9 (diff) - Next » - Current version
David PICARD, 03/02/2015 05:34 PM


Install

Required software :

  • Numpy : array manipulation.
  • Scipy : scientific library.
  • PySide : Qt bindings for Python.
  • PyQtGraph : scientific sraphics and GUI library for Python.
  • PyOpenGL : Python OpenGL binding. Some classes of PyQtGraph require PyOpenGL.
  • The source code of the project, from the repository.

Windows

Python

Get Algorete, 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.

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. 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

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). Get Algorete, 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

protron.png (135 KB) David PICARD, 12/07/2017 05:15 PM