Installation Guide
Installation
Section titled “Installation”This page covers installing the PyGo CLI in depth: the installer script, environment variables, manual download from GitHub releases, self-update, checksum verification, and troubleshooting.
System requirements
Section titled “System requirements”| Component | Minimum version |
|---|---|
| Go | 1.26.6+ |
| Python | 3.11+ |
| OS | Linux, macOS, Windows |
PyGo itself does not require Node.js. It is a Go + Python framework. (Node is only needed to build this documentation site.)
Option 1 — Universal installer script (recommended)
Section titled “Option 1 — Universal installer script (recommended)”The script downloads the raw binary pygo-v{ver}-{os}-{arch} for your platform, verifies checksums.txt, and installs to ~/.local/bin:
curl -sL https://raw.githubusercontent.com/PyGo-Labs/pygo-framework/main/install.sh | bashexport PATH="$HOME/.local/bin:$PATH"Environment variables
Section titled “Environment variables”| Variable | Purpose | Default |
|---|---|---|
PYGO_VERSION |
Pin a specific release (e.g. 2.2.4). |
latest release |
PYGO_INSTALL_DIR |
Where the binary is installed. | ~/.local/bin |
Example:
PYGO_VERSION=2.2.4 PYGO_INSTALL_DIR="$HOME/.bin" \ curl -sL https://raw.githubusercontent.com/PyGo-Labs/pygo-framework/main/install.sh | bashOption 2 — Manual download from GitHub Releases
Section titled “Option 2 — Manual download from GitHub Releases”Download the binary for your platform directly from the releases page and place it on your PATH:
# Linux amd64curl -L https://github.com/PyGo-Labs/pygo-framework/releases/latest/download/pygo-v2.2.4-linux-amd64 -o ~/.local/bin/pygochmod +x ~/.local/bin/pygo
# macOS arm64curl -L https://github.com/PyGo-Labs/pygo-framework/releases/latest/download/pygo-v2.2.4-darwin-arm64 -o ~/.local/bin/pygochmod +x ~/.local/bin/pygoAvailable platform binaries:
pygo-v{ver}-linux-amd64pygo-v{ver}-linux-arm64pygo-v{ver}-darwin-amd64pygo-v{ver}-darwin-arm64pygo-v{ver}-windows-amd64
Each release also publishes checksums.txt (SHA-256) for verification.
Verifying the checksum
Section titled “Verifying the checksum”After downloading, verify the binary against the published checksums:
curl -L https://github.com/PyGo-Labs/pygo-framework/releases/latest/download/checksums.txt -o checksums.txtsha256sum -c --ignore-missing checksums.txtThe installer script performs this verification automatically.
Option 3 — Self-update with pygo upgrade
Section titled “Option 3 — Self-update with pygo upgrade”If you already have the CLI, upgrade it in place:
pygo upgradepygo upgrade downloads the latest raw binary, verifies checksums.txt, and installs it over the current one.
Create a project
Section titled “Create a project”pygo new myappcd myapppygo devTroubleshooting
Section titled “Troubleshooting”pygo: command not found
Your install directory is not on PATH. Run export PATH="$HOME/.local/bin:$PATH" (or your PYGO_INSTALL_DIR), or add it to your shell profile.
Checksum verification failed
The download was interrupted or the release was repointed. Re-run the installer, or manually verify with sha256sum -c as shown above.
pygo dev cannot start Python
Ensure python3 is on PATH (matches python.interpreter in pygo.toml). Run pygo doctor to diagnose project health.
Wrong version installed
Pin a version with PYGO_VERSION=2.2.4 for the installer, or run pygo upgrade after setting the desired release.