Install Pyro

Get Pyro running on your machine in under a minute.

Quick Install

curl -fsSL https://aravindlabs.tech/pyro-lang/install.sh | bash
curl -fsSL https://aravindlabs.tech/pyro-lang/install.sh | bash
irm https://aravindlabs.tech/pyro-lang/install.ps1 | iex

Installs Pyro + C++ toolchain automatically. No Visual Studio, no restarts, no admin needed.

Linux

Prerequisites

  • GCC 11+ or Clang 14+
  • CMake 3.20+
  • OpenSSL 1.1+ development headers
  • Git

Install prerequisites (Ubuntu / Debian)

sudo apt update
sudo apt install -y build-essential cmake libssl-dev git

Install prerequisites (Fedora / RHEL)

sudo dnf install -y gcc gcc-c++ cmake openssl-devel git

Install prerequisites (Arch)

sudo pacman -S base-devel cmake openssl git

Quick install via script

curl -fsSL https://aravindlabs.tech/pyro-lang/install.sh | bash

This downloads the latest binary, installs it to ~/.pyro/bin/, and adds it to your PATH.

Build from source

git clone https://github.com/krish9219/pyro.git
cd pyro
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j$(nproc)
sudo make install

Verify installation

pyro --version
# Pyro 1.0.0 (linux-x86_64, built from 7,045 lines of C++)

pyro run -e 'print("Hello from Pyro!")'
# Hello from Pyro!

macOS

Prerequisites

  • Xcode Command Line Tools
  • Homebrew (recommended)

Build from source

# Install Xcode CLI tools
xcode-select --install

# Install dependencies
brew install cmake openssl

# Clone and build
git clone https://github.com/krish9219/pyro.git
cd pyro
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release \
         -DOPENSSL_ROOT_DIR=$(brew --prefix openssl)
make -j$(sysctl -n hw.ncpu)
sudo make install

Verify installation

pyro --version
# Pyro 1.0.0 (darwin-arm64, built from 7,045 lines of C++)

pyro run -e 'print("Hello from Pyro!")'

Windows

Quick install (recommended)

No Visual Studio, no restarts, no admin needed. Installs Pyro + C++ toolchain.

irm https://aravindlabs.tech/pyro-lang/install.ps1 | iex

This automatically:

  • Downloads pyro.exe compiler with all 76 built-in modules
  • Downloads MinGW C++ toolchain so pyro run works immediately
  • Adds everything to PATH
  • Installs to %LOCALAPPDATA%\Pyro\

Build from source (advanced)

Only needed if you want to modify Pyro itself

Requires: Git, CMake, Visual Studio Build Tools with C++ workload

git clone https://github.com/krish9219/pyro.git
cd pyro
mkdir build
cd build
cmake ..
cmake --build . --config Release

Verify installation

pyro --version
# Pyro 1.0.0 (windows-x86_64, built from 7,045 lines of C++)

pyro run -e "print('Hello from Pyro!')"

Docker

# Pull the official image
docker pull aravindlabs/pyro:latest

# Run a Pyro script
docker run --rm -v $(pwd):/app aravindlabs/pyro:latest pyro run /app/main.ro

# Interactive REPL
docker run --rm -it aravindlabs/pyro:latest pyro repl

Included Toolchain

Every Pyro installation includes the full toolchain:

Command Description
pyro run <file> Compile and run a Pyro source file
pyro build <file> Compile to a native binary
pyro repl Interactive Read-Eval-Print Loop
pyro fmt <file> Format source code
pyro lsp Start the Language Server Protocol server
pyro debug <file> Run with the built-in debugger
pyro profile <file> Run with the profiler attached
pyro test Run test suites
pyro doc <file> Generate documentation from source

Editor Support

Pyro's built-in LSP server provides IDE features out of the box. Configure your editor:

VS Code

Install the Pyro Language extension from the VS Code marketplace, or:

code --install-extension aravindlabs.pyro-lang

Neovim (with nvim-lspconfig)

-- In your Neovim config (init.lua)
require('lspconfig').pyro_lsp.setup {
    cmd = { "pyro", "lsp" },
    filetypes = { "pyro" },
}

Vim (with ALE)

" In your .vimrc
let g:ale_linters = {'pyro': ['pyro-lsp']}
let g:ale_fixers  = {'pyro': ['pyro-fmt']}

Sublime Text

Install LSP and LSP-pyro packages via Package Control.

Uninstall

Linux (script install)

rm -rf ~/.pyro
# Remove the PATH entry from ~/.bashrc or ~/.zshrc

macOS

sudo rm /usr/local/bin/pyro /usr/local/bin/pyro-lsp
sudo rm -rf /usr/local/lib/pyro

Windows

Delete the pyro build folder and remove the directory from your system PATH.

Ready to write your first program?

Go to Tutorial