Skip to content

Constraint on scikit-learn prevents installation on Python 3.10 with conda-forge

The current constraint on scikit-learn is too restrictive to enable installing this project in a Python 3.10 environment with conda-forge:

$ mamba create -n em-bright python=3.10 ligo.em-bright
conda-forge/linux-64                                        Using cache
conda-forge/noarch                                          Using cache

Looking for: ['python=3.10', 'ligo.em-bright']

Encountered problems while solving:
  - package ligo.em-bright-0.1.0-pyhd8ed1ab_0 requires scikit-learn >=0.24,<0.25, but none of the providers can be installed

The fundamental issue being that the first version of scikit-learn to be built with Python 3.10 on conda-forge is 1.0.1:

$ conda search scikit-learn=*=py310*
Loading channels: done
# Name                       Version           Build  Channel
scikit-learn                   1.0.1 py310h1246948_2  conda-forge
scikit-learn                   1.0.1 py310h1246948_3  conda-forge
scikit-learn                   1.0.2 py310h1246948_0  conda-forge
scikit-learn                   1.1.0 py310hffb9edd_0  conda-forge
scikit-learn                   1.1.1 py310hffb9edd_0  conda-forge

Is it possible to loosen the constraint, or shift it to >=1.0.0,<2.0.0?