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
| Variable | Description | Default |
|---|---|---|
PIXI_VERSION | The version of Pixi to install | latest |
PIXI_HOME | Location of the Pixi home folder | $HOME/.pixi |
PIXI_BIN_DIR | Location where the binary is installed | $PIXI_HOME/bin |
PIXI_ARCH | Architecture the version was built for | uname -m |
PIXI_NO_PATH_UPDATE | If set, PATH will not be updated | - |
PIXI_DOWNLOAD_URL | Override download URL for mirrors | GitHub releases |
Examples
Install a specific version:Windows Options
| Variable | Description | Default |
|---|---|---|
PIXI_VERSION | The version of Pixi to install | latest |
PIXI_HOME | Location of the installation | $Env:USERPROFILE\.pixi |
PIXI_NO_PATH_UPDATE | If set, PATH will not be updated | false |
PIXI_DOWNLOAD_URL | Override download URL | GitHub releases |
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: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