Skip to content

Globally install multiple Python interpreters side by side #833

Answered by sinoroc
sinoroc asked this question in Q&A
Discussion options

You must be logged in to vote

As far as I can tell for now, a solution like the following is (exactly) what I need:

pixi global install --environment=py39 --expose=python3.9 python=3.9
pixi global install --environment=py312 --expose=python3.12 python=3.12
pixi global install --environment=py313 --expose=python3.13 python=3.13

This looks like this in pixi-global.toml

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" = "py…

Replies: 3 comments 15 replies

Comment options

You must be logged in to vote
7 replies
@pavelzw
Comment options

@ruben-arts
Comment options

@sinoroc
Comment options

@sinoroc
Comment options

@sinoroc
Comment options

Comment options

You must be logged in to vote
8 replies
@sinoroc
Comment options

@liquidcarbon
Comment options

@sinoroc
Comment options

@liquidcarbon
Comment options

@sinoroc
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by sinoroc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants