Python Dependencies for SpiNNaker

Follow me on GitHub

The version described here is no longer supported.

Home page for current version

This guide will detail how to install the core Python dependencies for SpiNNaker.

This has been tested using Fedora Linux 20 64-bit, Ubuntu Linux 14.04 LTS 64-bit, Ubuntu Linux 16.04 LTS 64-bit, Windows 8.1 64-bit, Mac OS X Mavericks and Mac OS X Yosemite, 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.

Linux

Ubuntu Linux Requirements

  1. Install Python

    sudo apt-get install python2.7
    
  2. Install pip

    sudo apt-get install python-pip
    sudo pip install --upgrade pip setuptools wheel
    

Fedora Linux Requirements

  1. Install Python

    sudo dnf install python
    
  2. Install pip

    sudo dnf install python-pip
    sudo pip install --upgrade pip setuptools wheel
    

Mac OS X

Mac OS X Requirements

  1. Download and install MacPorts (Requires XCode Developer Tools and an X11 windowing environment such as XQuartz). Note that with some versions of OS X, you might need to accept the Xcode license if you haven’t already done so.

  2. Install python

    sudo port install python27
    sudo port select --set python python27
    
  3. Install pip

    sudo port install py27-pip
    sudo port select --set pip pip27
    sudo pip install --upgrade pip setuptools wheel
    

Windows

Note that you need to install the correct build of the tools and update your PATH environment variable for the toolchain to work.

64-bit Windows Requirements

Users with an up-to-date version of Windows 10 64-bit may want to use the Linux Subsystem for Windows 10. This has been tested with an Ubuntu 14.04 install and seems to work well. For graphics content, you will also need to install and run an X-Windows Server. After installing, you should follow the Ubuntu installation instructions.

  1. Download and install Python.

  2. Download and install setuptools and pip.

  3. Update pip - from an administrative console, run:

    sudo pip install --upgrade pip
    
  4. Install numpy (optional if you are going to use a Virtual Env):

    pip install https://github.com/SpiNNakerManchester/SpiNNakerManchester.github.io/releases/download/v1.0-win64/numpy-1.13.1.mkl-cp27-cp27m-win_amd64.whl
    
  5. Install scipy (optional if you are going to use a Virtual Env):

    pip install https://github.com/SpiNNakerManchester/SpiNNakerManchester.github.io/releases/download/v1.0-win64/scipy-0.19.1-cp27-cp27m-win_amd64.whl
    

Continue to edit your PATH.

32-bit Windows Requirements

  1. Download and install Python

  2. Download and install setuptools and pip.

  3. Update pip - from an administrative console, run:

    pip install --upgrade pip
    
  4. Install numpy (optional if you are going to use a Virtual Env):

    pip install https://github.com/SpiNNakerManchester/SpiNNakerManchester.github.io/releases/download/v1.0-win32/numpy-1.13.1.mkl-cp27-cp27m-win32.whl
    
  5. Install scipy (optional if you are going to use a Virtual Env):

    pip install https://github.com/SpiNNakerManchester/SpiNNakerManchester.github.io/releases/download/v1.0-win32/scipy-0.19.1-cp27-cp27m-win32.whl
    

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.

  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; for example, if you installed the dependencies to the default/recommended locations, prepend Path with:

    C:\Python27;C:\Python27\Scripts;