Reputation: 25209
I have set up couple of environments with Data Science libraries like pandas, numpy, matplotlib, scikit-learn, tensorflow etc.
.
However I cannot update some packages to the latest version.
E.g.
conda update pandas
will tell me I have the latest version available however I know for sure the latest version is 1.+
(mine is 0.25
)
Is there a way to see which packages prevent a specific package from updating?
Upvotes: 12
Views: 891
Reputation: 8098
There is a way to do it using the drop-in replacement mamba
.
All you have to do is provide the version of the package you want to update to, and mamba
will tell you what's preventing it from updating.
E.g., in my case, I wanted to update snakemake
to version > 7. But mamba update snakemake
only gave me 6.15.
So I ran: mamba install snakemake=7
, and the result was informative:
Looking for: ['snakemake=7']
Pinned packages:
- python 3.8.*
- bcbio-gff 0.6.7.*
Encountered problems while solving:
- nothing provides yte >=1.0,<2.0 needed by snakemake-minimal-7.0.0-pyhdfd78af_0
It turns out I had forgotten to include -c conda-forge
which is where yte
was to come from.
Upvotes: 3
Reputation: 478
As it's explained in anacondas documentation, there is no real way to do it in one step. You can check each package dependencies one by one. This is explained in the following link. https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-pkgs.html#listing-package-dependencies
Upvotes: 1