Platform Definition
Define supported platforms in your workspace:Supported Platforms
linux-64- Linux x86_64linux-aarch64- Linux ARM64osx-64- macOS Intelosx-arm64- macOS Apple Siliconwin-64- Windows x86_64
Pixi determines which dependencies to install for each platform individually, storing everything in the lock file.
Platform Validation
Runningpixi install on an unsupported platform shows a warning:
Target Specifiers
Use target specifiers to configure platform-specific settings. The[target.<platform>] section overrides default configuration for specific platforms.
Platform-Specific Dependencies
Install different packages or versions per platform:Using the CLI
Add platform-specific dependencies from the command line:Host and Build Dependencies
Platform-specific dependencies work with host and build dependencies too:Platform-Specific Activation
Different platforms often require different activation scripts:On Windows, only the
target.win-64.activation.scripts run - the base activation.scripts are replaced, not merged.Activation Environment Variables
Set platform-specific environment variables:Platform-Specific System Requirements
Define different system requirements per platform:Complete Example
Here’s a real-world multi-platform configuration:Multi-Platform with Multiple Environments
Combine platform targeting with multiple environments:Best Practices
Define All Target PlatformsCommon Platform Patterns
Common Platform Patterns
Cross-Platform PythonPlatform-Specific CompilersHardware Acceleration