Installation

SmartAnthill is written in Python and works on Mac OS X, Linux, Windows OS and ARM-based credit-card sized computers (Raspberry Pi, BeagleBone, CubieBoard).

System requirements

All commands below should be executed in Command-line application:

  • Mac OS X / Linux this is Terminal application.
  • Windows this is Command Prompt (cmd.exe) application.

Note

Linux Users: Don’t forget to install “udev” rules file 99-platformio-udev.rules (an instruction is located in the file).

Windows Users: Please check that you have correctly installed USB driver from board manufacturer

Installation Methods

Please choose one of the following installation methods:

Super-Quick (Mac / Linux)

To install or upgrade SmartAnthill paste that at a Terminal prompt (you MIGHT need to run sudo first, just for installation):

[sudo] python -c "$(curl -fsSL https://raw.githubusercontent.com/smartanthill/smartanthill2_0/develop/scripts/get-smartanthill.py)"

Installer Script (Mac / Linux / Windows)

To install or upgrade SmartAnthill, download (save as...) get-smartanthill.py script. Then run the following (you MIGHT need to run sudo first, just for installation):

# change directory to folder where is located downloaded "get-smartanthill.py"
cd /path/to/dir/where/is/located/get-smartanthill.py/script

# run it
python get-smartanthill.py

On Windows OS it may look like:

# change directory to folder where is located downloaded "get-smartanthill.py"
cd C:\path\to\dir\where\is\located\get-smartanthill.py\script

# run it
C:\Python27\python.exe get-smartanthill.py

Full Guide

  1. Check python version (only 2.6-2.7 is supported):
$ python --version

Windows Users only:

  1. Download Python 2.7 and install it.
  2. Download and install the latest Python for Windows extensions (PyWin32).
  3. Add to PATH system variable ;C:\Python27;C:\Python27\Scripts; and reopen Command Prompt (cmd.exe) application. Please read this article How to set the path and environment variables in Windows.
  1. Check a pip tool for installing and managing Python packages:
pip search smartanthill

You should see short information about smartanthill package.

If your computer does not recognize pip command, try to install it first using these instructions.

  1. Install a smartanthill and related packages:

Warning

SmartAnthill has not been published in PyPi registry. Please use installation script get-smartanthill.py mentioned above.

pip install smartanthill && pip install --egg scons

For upgrading the smartanthill to new version please use this command:

pip install -U smartanthill