Installation

Note

We are proud to present our official PlatformIO IDE - The next-generation integrated development environment for IoT.

  • Cross-platform build system without external dependencies to the OS software:

    • 250+ embedded boards
    • 20+ development platforms
    • 10+ frameworks
  • C/C++ Intelligent code completion

  • C/C++ Smart code linter for super-fast coding

  • Library Manager for the hundreds popular libraries

  • Multi-projects workflow with multiple panes

  • Multiple panes

  • Themes support with dark and light colors

  • Serial Port Monitor

  • Built-in Terminal with PlatformIO CLI tool (pio, platformio)

Install PlatformIO IDE.

PlatformIO 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

Operating System:
 

Mac OS X, Linux (+ARM) or Windows

Python Interpreter:
 

Python 2.6 or 2.7. Python 2.7 is recommended

Attention

Windows Users: Please Download the latest Python 2.7.x and install it. DON’T FORGET to select Add python.exe to Path feature on the “Customize” stage, otherwise Python Package Manager pip command will not be available.

_images/python-installer-add-path1.png
Terminal Application:
 

All commands below should be executed in Command-line application (Terminal). For Mac OS X and Linux OS - Terminal application, for Windows OS – cmd.exe application.

Installation Methods

Note

You don’t need to install PlatformIO CLI if you are going to use PlatformIO IDE for Atom. PlatformIO CLI is built into PlatformIO IDE and you will be able to use it within PlatformIO IDE Terminal.

Please choose ONE of the following methods:

Python Package Manager

The latest stable version of PlatformIO may be installed or upgraded via Python Package Manager (pip) as follows:

pip install -U platformio

If pip command is not available run easy_install pip or use Installer Script which will install pip and platformio automatically.

Note that you may run into permissions issues running these commands. You have a few options here:

  • Run with sudo to install PlatformIO and dependencies globally
  • Specify the pip install –user option to install local to your user
  • Run the command in a virtualenv local to a specific project working set.

Installer Script

Super-Quick (Mac / Linux)

To install or upgrade PlatformIO paste that at a Terminal prompt (MAY require administrator access sudo):

python -c "$(curl -fsSL https://raw.githubusercontent.com/platformio/platformio/master/scripts/get-platformio.py)"

Local Download (Mac / Linux / Windows)

To install or upgrade PlatformIO, download (save as...) get-platformio.py script. Then run the following (MAY require administrator access sudo):

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

# run it
python get-platformio.py

On Windows OS it may look like:

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

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

Mac OS X Homebrew

The latest stable version of PlatformIO may be installed or upgraded via Mac OS X Homebrew Packages Manager (brew) as follows:

brew install platformio

Full Guide

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

Windows Users only:

  1. Install a platformio and related packages:
pip install -U platformio

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

For upgrading platformio to the latest version:

pip install -U platformio

Development Version

Warning

If you use PlatformIO IDE for Atom, please enable development version via Menu PlatformIO: Settings > PlatformIO IDE > Use development version of PlatformIO.

Install the latest PlatformIO from the develop branch:

# uninstall existing version
pip uninstall platformio

# install the latest development version of PlatformIO
pip install -U https://github.com/platformio/platformio/archive/develop.zip

If you want to be up-to-date with the latest develop version of PlatformIO, then you need to re-install PlatformIO each time if you see the new commits in PlatformIO GitHub repository (branch: develop).

To revert to the latest stable version

pip uninstall platformio
pip install -U platformio

Troubleshooting

Note

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

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

For further details, frequently questions, known issues, please refer to Frequently Asked Questions.