pixi install command installs environments, updating the lock file if necessary.
Usage
Overview
Thepixi install command:
- Updates the lock file if the manifest changed
- Installs packages into the environment
- Runs post-install scripts
You don’t need to run
pixi install before pixi run or pixi shell. These commands automatically install if needed.Options
Environment Selection
Install specific environment(s). Can be specified multiple times.Short flag:
-edefault environment.
Install all environments defined in the manifest.Short flag:
-a--environment.
Selective Package Installation
Skip specific package(s). Soft exclusion: package is skipped but dependencies are installed. Can be specified multiple times.
Skip package and its entire dependency tree. Hard exclusion: package and dependencies are excluded unless reachable from other packages. Can be specified multiple times.
Install only these package(s) and their dependencies. Can be specified multiple times.
Lock File Options
Install from lock file without updating it. Fails if lock file is out of sync.Env:
PIXI_FROZENCheck if lock file is up-to-date before installing. Aborts if out of sync.Env:
PIXI_LOCKEDExamples
Install Default Environment
Install Specific Environment
Install Multiple Environments
Install All Environments
Skip Large Packages
Skip CUDA but keep its dependencies:Skip with Dependencies
Skip PyTorch and all its dependencies:Install Only Python and NumPy
Frozen Install (CI/CD)
Locked Install (Safety Check)
Use Cases
Development Workflow
CI/CD Pipeline
Multi-Environment Project
pixi.toml
Skip Heavy Dependencies
For development without GPU:Detached Environments
When using detached environments:~/.pixi/config.toml
Package Filtering Details
Skip vs Skip-with-deps
Soft exclusion (--skip):
pytorchis skipped- Dependencies of
pytorchare installed if needed by other packages
--skip-with-deps):
pytorchis skipped- All dependencies of
pytorchare skipped - Unless dependencies are needed by other non-skipped packages
Only Filter
- Installs
numpy - Installs all dependencies of
numpy - Skips everything else
Multiple Filters
Combining filters:- Install
pythonandpytestwith dependencies - Skip
pytorchand its dependencies
Output Messages
Success with filters:Global Options
Path to
pixi.toml, pyproject.toml, or workspace directory.Short flag: -mConfig Options
--auth-file <FILE>: Authentication credentials file--tls-no-verify: Disable TLS verification--concurrent-downloads <N>: Max concurrent downloads (default: 50)--concurrent-solves <N>: Max concurrent solves
Troubleshooting
Lock File Out of Sync
Error:lock file is out of sync
Solution: Run without --frozen:
Package Not Found
Error:package 'xyz' not found
Solution: Check package name and channel:
Solver Conflict
Error:cannot solve dependencies
Solution: Check version constraints:
Disk Space Issues
Error:no space left on device
Solution: Clean cache:
Network Issues
Error:failed to download
Solution: Check connectivity and proxies:
Performance Tips
- Use
--frozenin CI to skip lock file updates - Skip heavy packages during development
- Install only what you need with
--only - Use detached environments for faster workspace deletion
See Also
- pixi add - Add dependencies
- pixi remove - Remove dependencies
- pixi update - Update lock file
- pixi reinstall - Reinstall environments