The version described here is no longer supported.
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.
- Ubuntu Linux Requirements
- Fedora Linux Requirements
- Mac OS X Requirements
- 64-bit Windows Requirements
- 32-bit Windows Requirements
- Windows PATH settings
Linux
Ubuntu Linux Requirements
-
Install Python
sudo apt-get install python2.7
-
Install pip
sudo apt-get install python-pip sudo pip install --upgrade pip setuptools wheel
Fedora Linux Requirements
-
Install Python
sudo dnf install python
-
Install pip
sudo dnf install python-pip sudo pip install --upgrade pip setuptools wheel
Mac OS X
Mac OS X Requirements
-
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.
-
Install python
sudo port install python27 sudo port select --set python python27
-
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.
-
Download and install Python.
-
Download and install setuptools and pip.
-
Update pip - from an administrative console, run:
sudo pip install --upgrade pip
-
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
-
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
-
Download and install Python
-
Download and install setuptools and pip.
-
Update pip - from an administrative console, run:
pip install --upgrade pip
-
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
-
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.
- 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; for example, if you installed the dependencies to the default/recommended locations, prepend
Path
with:C:\Python27;C:\Python27\Scripts;