-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple global environments #188
Comments
I also have a few pixi projects on my hard drive that are just there to test some stuff in certain environments. I personally prefer to manage these myself instead of having a tool that creates named project "somewhere" ✨ . I like to be explicit and in control. I like that I know how to manipulate the filesystem and that those operations also map to managing pixi projects. I don't want to have to learn another set of commands to manage projects. Nonetheless, I can understand that it can be a hurdle to create a temporary environment by first having to create a pixi project and then having to remember where they are. Maybe you can help me understand the use case better. Could you elaborate a little bit on the following questions from your personal point of view?
I'm very interested in your (and others') point of view! |
I would also be interested in that feature. It's true that one base default global env is already super useful but having the freedom to have multiple of them would be very convenient (for deps that simply dont work well in the same env). I like having those global envs not depending on any folder so they work in any terminal without having to do a |
Adding to that, I think it would be great if:
Not sure if these should be separate issues -- if so, I'm happy to create new issues. |
@mjkanji Thanks for your feedback!
I feel pixi should always act on the filesystem vs globally managed names. I like this better because it compartmentalized projects. For instance, by removing a project directory you are sure the entire thing has been removed from your machine and moving a project directory becomes trivial. If you refer to a project from somewhere you should do so by the unique location on your system instead of by name. You can already do this with pixi shell --manifest-path /some/random/dir/pixi.toml
I totally get this! Cargo does something similar with the |
Created #255. |
Typically I want the freedom to execute in the environment from any CWD, not just below the project root. Also, it's a bit more cumbersome because it's two commands. If used in scripts, you need to pushd/popd.
Yes!
I remember them and use shell history, not completion.
Not really; I'm fine with using
That would in fact be pretty awesome! But it's sort of unrelated IMO. |
Part of why I really like That being said, perhaps |
I do prefer more compartmentalized approach of Pixi compared to Conda/Mamba. But the former support both approaches (global namespace, and project-specific). Would be great if Pixi supported both as well. +1 for the approach @twrightsman recommended above. |
@ruben-arts I read through the v0.19.0 changelog but I can't see the feature that fixes this issue. Could you share a snippet or demo that shows how to create multiple global environments? |
Sorry that was by mistake, I don't know how this happened |
This will be solved by the new implementation of the I'll close this issue for now to avoid duplicate discussions. |
I regularly need multiple "global"/"non-project" environments that I can switch between.
Eg. I want to try something with Pandas 1 or Pandas 2 without having a specific project in mind.
Right now I have "pseudo" Pixi projects that I
cd
to and then usepixi shell
.I think what I want is Conda's
-n
option but not sure how that fits the "Cargo model" of implicit environment name/locationThe text was updated successfully, but these errors were encountered: