PIO

Getting Started

  • PIO IDE
  • PIO Core (CLI)
    • Installation
      • System Requirements
      • Installation Methods
        • Installer Script (Recommended)
        • Python Package Manager
        • Homebrew (macOS)
      • Development Version
      • Install Shell Commands
      • 99-platformio-udev.rules
      • Integration with custom applications (extensions, plugins)
      • Proxy Configuration
      • Troubleshooting
      • Uninstall PIO Core and dependent packages
    • Quick Start
    • CLI Guide
  • PIO Home
  • PIO Account
  • Tutorials and Examples

Configuration

  • platformio.ini
  • Build Configurations
  • Environment variables

Instruments

  • Libraries
  • Platforms
  • Frameworks
  • Boards
  • Custom Hardware

Advanced

  • Scripting
  • Debugging
  • Unit Testing
  • Static Code Analysis
  • Remote Development

Integration

  • Cloud & Desktop IDEs
  • Continuous Integration
  • Compilation database

Miscellaneous

  • FAQ
  • Release Notes
PIO
  • PIO Core (CLI)
  • Installation
  • Installation Methods
  • Installer Script (Recommended)
  • Edit on GitHub

Installer Script (Recommended)¶

Warning

PIO DOES NOT require administrative/sudo permissions. Please install using the default user account WITHOUT EXTRA PERMISSIONS.

Install PIO Core into the virtual Python environment using an installer script.

A default location of Python virtual environment is “core_dir/penv”. If you have any issues with PIO Core, just remove this folder and re-run installer script.

  • Super-Quick (macOS / Linux)

  • Local Download (macOS / Linux / Windows)

Super-Quick (macOS / Linux)¶

To install or upgrade PIO Core paste that at a Terminal prompt:

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

or using curl

curl -fsSL https://raw.githubusercontent.com/platformio/platformio-core-installer/master/get-platformio.py -o get-platformio.py
python3 get-platformio.py

or using wget

wget https://raw.githubusercontent.com/platformio/platformio-core-installer/master/get-platformio.py -O get-platformio.py
python3 get-platformio.py

Local Download (macOS / Linux / Windows)¶

To install or upgrade PIO Core, download (save as…) get-platformio.py script. Then run the following:

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

# run it
python get-platformio.py

On Windows OS it may look like this:

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

# run it
python.exe get-platformio.py

Note

If you need to have access to pio or pio.exe commands from other applications or terminals in your OS, please Install Shell Commands.

Previous Next

© Copyright 2022 - 2024 www.OS-Q.com.

PIO Documentation v6.1.16b1 (latest)
Created By Qtias