Skip to content
Dominik Jain edited this page Feb 2, 2025 · 8 revisions

Installation

Windows:

winget install prefix-dev.pixi

This may not install the latest version, unfortunately. All releases are available here

Linux:

curl -fsSL https://pixi.sh/install.sh | bash

Configuration (with detached environments)

  • set PIXI_HOME to the location where you want to store stuff

  • edit $PIXI_HOME/config.toml and configure the envs location, e.g.

    detached-environments = "I:/pixi/envs"
    

See docs here

General Usage

Pixi uses two files two files, pixi.toml and pixi.lock, to store dependency information.

Adding a dependency

# conda
pixi add mydep

# pip/PyPI
pixi add --pypi mydep

Creating an env from an existing pixi.toml

pixi install

Unlocking a dependency/updating a dependency

pixi update <dep>

This can be necessary when, for example, adding a new dependency that requires a newer version of an existing dependency. Simply add the new dep to pixi.toml and then use update to resolve any conflict.

Usage in IntelliJ/PyCharm

For activation to work, projects must add the dependency pixi-pycharm

pixi add pixi-pycharm

In the IDE, then add a conda env, adding the shim it adds as the conda executable (e.g. path/to/pixi-project/envs/default/libexec/conda.bat). See docs here

Clone this wiki locally