Here you can find the instructions to install pyslam under pixi and a very concise pixi primer.
Currently, pixi support is experimental and may encounter issues with building and linking.
Follow the steps reported below:
curl -fsSL https://pixi.sh/install.sh | sh
Reference: https://pixi.sh/latest/#installation
From the root folder of this repository, run
pixi shell Then, from the root folder, run
./install_all.shThis script will prepare the pixi-dedicated pyslam environment, and build the required thirdparty packages. Under the hood, the script install_all.sh calls the pixi-specific script scripts/install_all_pixi.sh.
Once you have activate the pixi shell in your terminal, you're ready to run any main script.
From within your project folder:
pixi initThis creates a pixi.toml (like pyproject.toml) describing your environment.
Conda packages (from conda-forge):
pixi add numpy scipy matplotlibPip packages:
pixi add pip
pixi run pip install opencv-pythonThen manually edit pixi.toml to reflect pip-installed packages:
[tool.pixi.pip-dependencies]
opencv-python = "*"To test the environement:
pixi run python -c "import numpy; print(numpy.__version__)"
pixi run python -c "import cv2; print(cv2.__version__)" Other examples:
pixi run python script.py
pixi run jupyter notebookpixi shellThis opens a shell with pixi enviornment variable already set and you don't need anymore to use pixi run ...<python command>.
Add specific platform targets (e.g., cross-platform builds):
[tool.pixi]
platforms = ["linux-64", "osx-arm64", "win-64"]To delete the environment associated with the current project (i.e., clean slate):
pixi clean --allThis removes:
- The current environment’s packages
- The build cache
- Any temporary/lock artifacts
You can then rebuild it cleanly with:
pixi installThis is a recap table:
| Command | Description |
|---|---|
pixi init |
Initialize a new project |
pixi add <pkg> |
Add a dependency |
pixi install |
Re-resolve and install dependencies |
pixi run <cmd> |
Run a command in the environment |
pixi shell |
Enter an interactive shell |
pixi remove <pkg> |
Remove a package |
pixi list |
List installed packages |
pixi export --format toml |
Export environment definition as TOML |
pixi update |
Update dependencies and re-lock |
pixi clean --all |
Remove the local pixi environment |
- "Cross-Platform Package Management for Modern C++ Development with Pixi - Ruben Arts - CppCon 2025" https://www.youtube.com/watch?v=SQk0lKv2swk