Running NuPIC on Raspberry Pi


But I wanted to keep them in case someone else takes up the task - @rhyolight


  • Minimum of 8GB SD card
  • Download and install a Raspbian image
  • Set up 1GB of swap space

Install Required Libraries

  1. Run cmd: sudo apt-get upgrade
  2. Run cmd: sudo apt-get install automake libtool python-dev gcc-4.7 g++-4.7 swig libboost-dev libjpeg62-dev
  3. download and install setuptools from
  4. download and install pip from

Get Code and Build

  1. Run cmd: git clone
  2. edit ~/.bashrc as per the nupic/
  3. Run cmd: source ~/.bashrc
  4. Run cmd: $NUPIC/

Note that the full build process may take 6 hours to complete, so be patient. The output of the build process is at $BUILDDIR/stdout.txt. You can view the progress in real time with the following command.

tail -f $BUILDDIR/stdout.txt

Use Ctrl-C to stop viewing the output file. Once the build is complete you should be able to run the test scripts as per the README.