Python Dependencies for SpiNNaker

Follow me on GitHub

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

  1. Install Python sudo apt-get install python2.7
  2. Install numpy 1.12 or lower sudo apt-get install python-numpy
  3. Install scipy sudo apt-get install python-scipy
  4. Install lxml sudo apt-get install python-lxml
  5. Install pip sudo apt-get install python-pip
  6. Optional: Install matplotlib (often used in PyNN scripts for plotting graphs) sudo apt-get install python-matplotlib

Fedora Linux Requirements

  1. Install Python sudo dnf install python
  2. Install numpy 1.12 or lower sudo dnf install python-numpy
  3. Install scipy sudo dnf install scipy
  4. Install lxml sudo dnf install python-lxml
  5. Install pip sudo dnf install python-pip
  6. Optional: Install matplotlib (often used in PyNN scripts for plotting graphs) sudo dnf install python-matplotlib

Mac OS X Requirements

  1. Download and install MacPorts (Requires XCode Developer Tools and an X11 windowing environment such as XQuartz).
  2. Install python sudo port install python27 sudo port select --set python python27
  3. Install numpy 1.12 or lower sudo port install py27-numpy<=1.12.1
  4. Install scipy sudo port install py27-scipy
  5. Install lxml sudo port install py27-lxml
  6. Install pip sudo port install py27-pip sudo port select --set pip pip27
  7. Optional: Install matplotlib (often used in PyNN scripts for plotting graphs) sudo port install py27-matplotlib

32-bit Windows Requirements

  1. Download and install Python
  2. Download and install numpy
  3. Download and install scipy
  4. Download and install lxml
  5. 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)
  6. Optional: Download and install matplotlib (often used in PyNN scripts for plotting graphs)
    1. Download and install dateutil, pyparsing, six and matplotlib

Continue to edit your PATH.

64-bit Windows Requirements

  1. Download and install Python
  2. Download and install numpy
  3. Download and install scipy
  4. Download and install lxml
  5. 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)
  6. Optional: Download and install matplotlib (often used in PyNN scripts for plotting graphs)
    1. Download and install dateutil, pyparsing, six and matplotlib

Continue to edit your PATH.

Windows Path Settings

  1. Edit your PATH environment variable to include the Python27, Python27\Scripts and (if installed) gtk\bin directories.
    1. Go to “Control Panel”
    2. Go to “System” (may be under “System and Security”)
    3. Select “Advanced System Settings”
    4. Select “Environment Variables”
    5. Select the “Path” in the “System Variables” box at the bottom
    6. Click on “Edit”
    7. 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;