Skip to main content

Installing Pixi

Pixi is a single executable that can be installed on macOS, Linux, and Windows. The provided installation scripts will automatically download the latest version, extract it, and add it to your PATH.

Quick Install

Install Pixi with a single command:
If your system doesn’t have curl, you can use wget:
The script will download Pixi to ~/.pixi/bin and update your PATH in ~/.bashrc. You may need to restart your terminal or source your shell configuration.

macOS with Zsh

Starting with macOS Catalina, zsh is the default shell. Use:
The script will update your ~/.zshrc to include ~/.pixi/bin in your PATH.
Restart your terminal! After installation, restart your terminal or source your shell configuration to make pixi available.

Alternative Installation Methods

Homebrew (macOS & Linux)

Winget (Windows)

Scoop (Windows)

Install from Source

Pixi is 100% written in Rust and can be installed using Cargo:
Pixi is not published to crates.io because it depends on some unpublished crates. You must install directly from the GitHub repository.

Linux Distribution Packages

Arch Linux

Install from the extra repository using pacman:

Alpine Linux

Pixi is available for Alpine Edge. Enable the testing repository first:

Shell Autocompletion

After installing Pixi, enable autocompletion for your shell to improve the CLI experience.
Add to ~/.bashrc:
After adding autocompletion, restart your shell or source the configuration file for changes to take effect.

Installation Script Options

You can customize the installation using environment variables:

Linux & macOS Options

Examples

Install a specific version:
Force x86_64 on Apple Silicon:
Drop-in installation to system PATH:

Windows Options

Example

Install a specific version:

Updating Pixi

Update to the latest version:
Update to a specific version:
If you installed Pixi using a package manager (brew, conda, paru, etc.), use that package manager’s update mechanism instead. For example: brew upgrade pixi

Verify Installation

Check that Pixi is installed correctly:
You should see output like:

Uninstalling Pixi

Before uninstalling, you may want to clean up Pixi-managed data:
1

Clean cache

2

Remove workspace environments

Navigate to your workspace and run:
3

Remove Pixi directory

Linux & macOS:
Windows:
4

Remove from PATH

Remove ~/.pixi/bin (or %UserProfile%\.pixi\bin on Windows) from your shell configuration file.

Troubleshooting

Command not found after installation

If you get “command not found” after installation:
  1. Restart your terminal
  2. Or source your shell configuration:
    • Bash: source ~/.bashrc
    • Zsh: source ~/.zshrc
  3. Verify ~/.pixi/bin is in your PATH:

Permission denied on Linux/macOS

If you get permission errors:

Next Steps

Quick Start

Create your first Pixi workspace

Basic Usage

Learn essential Pixi commands