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
- Linux & macOS
- Windows
Install Pixi with a single command:If your system doesn’t have The script will update your
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:~/.zshrc to include ~/.pixi/bin in your PATH.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 usingpacman:
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.- Bash
- Zsh
- Fish
- PowerShell
- Nushell
- Elvish
Add to
~/.bashrc:Installation Script Options
You can customize the installation using environment variables:Linux & macOS Options
Examples
Install a specific version:Windows Options
Example
Install a specific version:Updating Pixi
Update to the latest 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 pixiVerify Installation
Check that Pixi is installed correctly: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:- Restart your terminal
- Or source your shell configuration:
- Bash:
source ~/.bashrc - Zsh:
source ~/.zshrc
- Bash:
- Verify
~/.pixi/binis 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