-
Is there a way to globally install multiple Python interpreters side by side? I guess what I have in mind is maybe something similar to Or something like this:
By using |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 15 replies
-
There are so-called features and environments in pixi which cover this use case. See here for the documentation and here for an implementation example that covers multiple Python versions (also notice how CI works there). |
Beta Was this translation helpful? Give feedback.
-
Would it work for you to have two local pythons and symlinks/shortcuts to them? Easy and predictable. |
Beta Was this translation helpful? Give feedback.
-
As far as I can tell for now, a solution like the following is (exactly) what I need:
This looks like this in version = 1
[envs.py39]
channels = ["conda-forge"]
dependencies = { python = "3.9.*" }
exposed = { "python3.9" = "python3.9" }
[envs.py312]
channels = ["conda-forge"]
dependencies = { python = "3.12.*" }
exposed = { "python3.12" = "python3.12" }
[envs.py313]
channels = ["conda-forge"]
dependencies = { python = "3.13.*" }
exposed = { "python3.13" = "python3.13" } The features enabling this were added in |
Beta Was this translation helpful? Give feedback.
As far as I can tell for now, a solution like the following is (exactly) what I need:
This looks like this in
pixi-global.toml