Skip to content

Cannot install scikit-learn from conda-forge channel alongside pytorch from the pytorch channel #1951

Open
@anjos

Description

@anjos

(Cross-linking related issue from conda-forge/scikit-learn-feedstock#271)

There seems to be no way to have these 2 packages installed together with the current conda builds for pytorch:

scikit-learn >=1.4 (from the conda-forge channel)
pytorch >=2.3 (from pytorch channel)

Test command:

mamba create --strict-channel-priority --override-channels -c pytorch -c conda-forge -n test --dry-run 'scikit-learn>=1.4' 'pytorch>=2.3'

The problem seems related to this package's very restrictive pinning on llvm-openmp<16 and the way this dependency is treated on conda-forge (c.f.: conda-forge/scikit-learn-feedstock#265, conda-forge/openmp-feedstock#126).

The offending line seems to come from: https://github.com/pytorch/builder/blob/main/conda/pytorch-nightly/meta.yaml#L49

I wonder if the issue is still present with versions 17 or 18 of LLVM, and if one could update this pin to allow for a more inclusive software stack.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions