-
Notifications
You must be signed in to change notification settings - Fork 25
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
Installing packages in different order gives totally different versions #448
Comments
Hi! This is the issue tracker for There's a related issue there at mamba-org/mamba#3058. If you use Can you check the output of |
Hi @jaimergp and thank you for your answer. Duly noted for the relevant repository, I'll open the issue there. Regarding your question, the outcome is indeed different when I use I wonder if it could be related to the fact that |
They probably left a lower bound open at some point, and a too restrictive one in recent versions, so the solver "finds its way" easier in the old builds. conda-libmamba-solver will prioritize the most constrained specs first, then alphabetically. So if you have The long term fix is to submit a repodata patch adding the required constraints so "that door" to old builds is no longer open, but findind out which restraints need to be added is tricky. |
Understood, thank you for the explanation. For now, I'll use a loose constraint as you suggest. |
Checklist
What happened?
Hi, I'm a bit puzzled by this problem, any help would be appreciated. I installed mamba through mambaforge and use it to build Python virtual environments.
If I do the following :
Mamba ends up installing 48 packages with the following versions :
Now if I just change the order of the packages when installing from :
to :
mamba installs only 37 packages and I get the following versions specs :
Now what I don't understand is how such a small change of order can have such a dramatic impact on what gets installed in the end. In particular, the version of
s3fs
installed in the second configuration is almost 4 years old, whereas it's the latest one in the first configuration.There seems to be somewhat a conflict of dependencies between
s3fs
etboto3
because if I create the environment in the second configuration and then runsmamba install s3fs=2024.2.0
in it, I get the following changes :But in the optimization process that mamba does, I don't understand how a huge major downgrading of
s3fs
can be prioritized over downgradingboto3
from a few patches, and especially why the result differs so much even when they are simultaneously installed.Thank's !
Conda Info
Conda Config
Conda list
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: