2014-08-09 16:31:20 +03:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								..  _installation: 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Installation
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								============
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-03-12 23:32:28 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								**PlatformIO**  is written in `Python  <https://www.python.org/downloads/> `_  and
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								works on Mac OS X, Linux, Windows OS and *ARM* -based credit-card sized
 
							 
						 
					
						
							
								
									
										
										
										
											2015-01-29 23:55:17 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								computers (`Raspberry Pi  <http://www.raspberrypi.org> `_ ,
 
							 
						 
					
						
							
								
									
										
										
										
											2015-03-12 23:32:28 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								`BeagleBone  <http://beagleboard.org> `_ ,
 
							 
						 
					
						
							
								
									
										
										
										
											2015-01-29 23:55:17 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								`CubieBoard  <http://cubieboard.org> `_ ).
 
							 
						 
					
						
							
								
									
										
										
										
											2014-11-21 21:06:32 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-02-15 21:12:25 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								..  contents :: 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2014-11-21 21:06:32 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								System requirements
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-------------------
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								*  **Operating systems:** 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    *  Mac OS X
 
							 
						 
					
						
							
								
									
										
										
										
											2015-01-29 23:55:17 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    *  Linux, +ARM
 
							 
						 
					
						
							
								
									
										
										
										
											2014-11-21 21:06:32 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    *  Windows
 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-27 22:28:38 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								*  `Python 2.6 or Python 2.7  <https://www.python.org/downloads/> `_ 
 
							 
						 
					
						
							
								
									
										
										
										
											2014-08-09 16:31:20 +03:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								All commands below should be executed in
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								`Command-line  <http://en.wikipedia.org/wiki/Command-line_interface> `_ 
 
							 
						 
					
						
							
								
									
										
										
										
											2014-11-21 21:06:32 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								application:
 
							 
						 
					
						
							
								
									
										
										
										
											2014-08-09 16:31:20 +03:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2014-11-21 21:06:32 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								*  *Mac OS X / Linux*  this is *Terminal*  application.
 
							 
						 
					
						
							
								
									
										
										
										
											2014-08-09 16:31:20 +03:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								*  *Windows*  this is
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  `Command Prompt  <http://en.wikipedia.org/wiki/Command_Prompt> `_  (`` cmd.exe `` )
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  application.
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2014-12-10 22:32:22 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								..  warning :: 
 
							 
						 
					
						
							
								
									
										
										
										
											2015-03-31 15:27:04 +03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    If you are going to run *PlatformIO*  from **subprocess** , you
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    :ref: `MUST DISABLE <faq_troubleshooting_pioblocksprompt>`  all prompts.
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    It will allow you to avoid blocking.
 
							 
						 
					
						
							
								
									
										
										
										
											2015-03-05 01:36:31 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-07-07 23:33:25 +03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								..  note :: 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    **Linux Users:**  Don't forget to install "udev" rules file
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    `99-platformio-udev.rules  <https://github.com/platformio/platformio/blob/develop/scripts/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
 
							 
						 
					
						
							
								
									
										
										
										
											2014-12-10 22:32:22 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-03-31 15:27:04 +03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								Troubleshooting
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								---------------
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								For further details, frequently questions, please refer to :ref: `faq` .
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Installation Methods
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								--------------------
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Please *choose one of*  the following installation methods:
 
							 
						 
					
						
							
								
									
										
										
										
											2014-11-14 00:12:23 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Super-Quick (Mac / Linux)
 
							 
						 
					
						
							
								
									
										
										
										
											2015-03-31 15:27:04 +03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								~~~~~~~~~~~~~~~~~~~~~~~~~
 
							 
						 
					
						
							
								
									
										
										
										
											2014-11-14 00:12:23 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2014-11-14 00:17:09 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								To install or upgrade *PlatformIO*  paste that at a *Terminal*  prompt
 
							 
						 
					
						
							
								
									
										
										
										
											2015-07-21 14:48:34 +03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								(**you MIGHT need**  to run `` sudo ``  first, just for installation):
 
							 
						 
					
						
							
								
									
										
										
										
											2014-11-14 00:12:23 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								..  code-block ::  bash
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-07-21 14:48:34 +03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    [sudo] python -c "$(curl -fsSL https://raw.githubusercontent.com/platformio/platformio/master/scripts/get-platformio.py)"
 
							 
						 
					
						
							
								
									
										
										
										
											2014-11-14 00:12:23 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Installer Script (Mac / Linux / Windows)
 
							 
						 
					
						
							
								
									
										
										
										
											2015-03-31 15:27:04 +03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
							 
						 
					
						
							
								
									
										
										
										
											2014-08-09 16:31:20 +03:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								To install or upgrade *PlatformIO* , download
 
							 
						 
					
						
							
								
									
										
										
										
											2015-03-25 11:34:48 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								`get-platformio.py  <https://raw.githubusercontent.com/platformio/platformio/master/scripts/get-platformio.py> `_ 
 
							 
						 
					
						
							
								
									
										
										
										
											2015-07-21 14:48:34 +03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								script. Then run the following (**you MIGHT need**  to run `` sudo ``  first,
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								just for installation):
 
							 
						 
					
						
							
								
									
										
										
										
											2014-08-09 16:31:20 +03:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								..  code-block ::  bash
 
							 
						 
					
						
							
								
									
										
										
										
											2015-07-06 22:36:05 +03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-07-06 18:44:00 +03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    # change directory to folder where is located downloaded "get-platformio.py"
 
							 
						 
					
						
							
								
									
										
										
										
											2015-07-21 14:48:34 +03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    cd /path/to/dir/where/is/located/get-platformio.py/script
 
							 
						 
					
						
							
								
									
										
										
										
											2015-07-07 23:33:25 +03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-07-06 18:44:00 +03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    # run it
 
							 
						 
					
						
							
								
									
										
										
										
											2014-11-14 00:12:23 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    python get-platformio.py
 
							 
						 
					
						
							
								
									
										
										
										
											2014-08-09 16:31:20 +03:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								On *Windows OS*  it may look like:
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								..  code-block ::  bash
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-07-06 18:44:00 +03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    # change directory to folder where is located downloaded "get-platformio.py"
 
							 
						 
					
						
							
								
									
										
										
										
											2015-07-21 14:48:34 +03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    cd C:\path\to\dir\where\is\located\get-platformio.py\script
 
							 
						 
					
						
							
								
									
										
										
										
											2015-07-07 23:33:25 +03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-07-06 18:44:00 +03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    # run it
 
							 
						 
					
						
							
								
									
										
										
										
											2014-08-09 16:31:20 +03:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								    C:\Python27\python.exe get-platformio.py
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Full Guide
 
							 
						 
					
						
							
								
									
										
										
										
											2015-03-31 15:27:04 +03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								~~~~~~~~~~
 
							 
						 
					
						
							
								
									
										
										
										
											2014-08-09 16:31:20 +03:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								1.  Check a `` python ``  version (only 2.6-2.7 is supported):
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								..  code-block ::  bash
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    $ python --version
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								*Windows OS*  Users only:
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    *  `Download Python 2.7  <https://www.python.org/downloads/> `_  and install it.
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    *  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
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								       <http://www.computerhope.com/issues/ch000549.htm>`_.
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								2.  Check a `` pip ``  tool for installing and managing *Python*  packages:
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								..  code-block ::  bash
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    $ pip search platformio
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								You should see short information about `` platformio ``  package.
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								If your computer does not recognize `` pip ``  command, try to install it first
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								using `these instructions  <https://pip.pypa.io/en/latest/installing.html> `_ .
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								3.  Install a `` platformio ``  and related packages:
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								..  code-block ::  bash
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    $ pip install platformio && pip install --egg scons
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								For upgrading the `` platformio ``  to new version please use this command:
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								..  code-block ::  bash
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    $ pip install -U platformio
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-02-15 21:25:49 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								Development Version
 
							 
						 
					
						
							
								
									
										
										
										
											2015-03-31 15:27:04 +03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								~~~~~~~~~~~~~~~~~~~
 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-15 21:25:49 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								..  warning :: 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    We don't recommend to use `` develop ``  version in production.
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-06-27 15:18:51 +03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								Install the latest PlatformIO from the `` develop ``  branch:
 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-15 21:25:49 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								..  code-block ::  bash
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-03-25 11:34:48 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    $ pip install https://github.com/platformio/platformio/archive/develop.zip
 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-15 21:25:49 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								If you want to be up-to-date with the latest `` develop ``  version of PlatformIO,
 
							 
						 
					
						
							
								
									
										
										
										
											2015-06-27 15:18:51 +03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								then you need to re-install PlatformIO each time if you see the new commits in
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								`PlatformIO GitHub repository (branch: develop)  <https://github.com/platformio/platformio/commits/develop> `_ .