A working Python 3.x installation is required to be able to use the SPI Rack interface. If you are using a GNU/Linux OS, this should already be installed on your computer. If you are using Mac OS X or Microsoft Windows you will need to install a Python distribution yourself. We highly recommend installing Anaconda, as this takes care of installing Python and the most commonly used packages, and the managing of packages. Download and install from here and make sure to get the latest 3.x version.
After you finished downloading, install Anaconda according to the instructions on screen, choosing the single user installation option. The instructions below assume that Anaconda 3.x is installed with all included packages.
Python 2.7 users might be able to use the SPI Rack code using
__future__, but this is untested and unsupported.
If you are running on Microsoft Windows 7 or 8, you will also need to install the SPI Rack controller device drivers. The rack communicates through a virtual Serial port over USB, and this requires drivers on Windows. Windows 10, Linux and Mac OS X users do not have to install these. Installing these drivers requires administrative rights.
Download the Windows drivers here: https://github.com/mtiggelman/SPI-rack/raw/master/drivers.zip
Before you install the SPI Rack, you have to decide whether you want to use the latest stable release or the developer version from GitHub. Both the options will install the spirack package into the currently active Anaconda environment. It will also install any necessary dependencies not installed by Anaconda.
To install the latest stable release, simple type in a console:
pip install spirack
Clone or download the repository from GitHub https://github.com/mtiggelman/SPI-rack and install the spirack package:
pip install -e <path-to-repository>
If you used pip to install the latest stable release from PyPi, run the following to update:
pip install --upgrade spirack
If you installed from GitHub, simply pull the repository using your preferred method and update from there.