The version described here is no longer supported.
This guide will detail how to install the Python dependencies for SpiNNaker.
This has been tested using Fedora Linux 20 64-bit, Ubuntu Linux 14.04 LTS 64-bit, Windows 8.1 64-bit, and Mac OS X Mavericks, but it should in principle work on 32-bit and 64-bit versions of Fedora and Ubuntu Linux, Windows 7, 8 and 10, and Mac OS X.
- Ubuntu Linux Requirements
- Fedora Linux Requirements
- Mac OS X Requirements
- 32-bit Windows Requirements
- 64-bit Windows Requirements
- Windows PATH settings
Ubuntu Linux Requirements
- Install Python
sudo apt-get install python2.7
- Install numpy 1.12 or lower
sudo apt-get install python-numpy
- Install scipy
sudo apt-get install python-scipy
- Install lxml
sudo apt-get install python-lxml
- Install pip
sudo apt-get install python-pip
- Optional: Install matplotlib (often used in PyNN scripts for plotting graphs)
sudo apt-get install python-matplotlib
Fedora Linux Requirements
- Install Python
sudo dnf install python
- Install numpy 1.12 or lower
sudo dnf install python-numpy
- Install scipy
sudo dnf install scipy
- Install lxml
sudo dnf install python-lxml
- Install pip
sudo dnf install python-pip
- Optional: Install matplotlib (often used in PyNN scripts for plotting graphs)
sudo dnf install python-matplotlib
Mac OS X Requirements
- Download and install MacPorts (Requires XCode Developer Tools and an X11 windowing environment such as XQuartz).
- Install python
sudo port install python27
sudo port select --set python python27
- Install numpy 1.12 or lower
sudo port install py27-numpy<=1.12.1
- Install scipy
sudo port install py27-scipy
- Install lxml
sudo port install py27-lxml
- Install pip
sudo port install py27-pip
sudo port select --set pip pip27
- Optional: Install matplotlib (often used in PyNN scripts for plotting graphs)
sudo port install py27-matplotlib
32-bit Windows Requirements
- Download and install Python
- Download and install numpy
- Download and install scipy
- Download and install lxml
- Download and install setuptools and [pip] (https://github.com/SpiNNakerManchester/github.SpiNNakerManchester.io/releases/download/v1.0-win32/pip-1.5.6.win32-py2.7.exe)
- Optional: Download and install matplotlib (often used in PyNN scripts for plotting graphs)
- Download and install dateutil, pyparsing, six and matplotlib
Continue to edit your PATH.
64-bit Windows Requirements
- Download and install Python
- Download and install numpy
- Download and install scipy
- Download and install lxml
- Download and install setuptools and [pip] (https://github.com/SpiNNakerManchester/github.SpiNNakerManchester.io/releases/download/v1.0-win64/pip-1.5.6.win-amd64-py2.7.exe)
- Optional: Download and install matplotlib (often used in PyNN scripts for plotting graphs)
- Download and install dateutil, pyparsing, six and matplotlib
Continue to edit your PATH.
Windows Path Settings
- Edit your PATH environment variable to include the Python27, Python27\Scripts and (if installed) gtk\bin directories.
- Go to “Control Panel”
- Go to “System” (may be under “System and Security”)
- Select “Advanced System Settings”
- Select “Environment Variables”
- Select the “Path” in the “System Variables” box at the bottom
- Click on “Edit”
- Add the new directory by putting it before the existing string, followed by a single semi-colon; if you installed the dependencies to the default/recommended locations, prepend Path with:
C:\Python27;C:\Python27\Scripts;