Scikit_learn update error from 2018.11

I am trying to update to the current scikit-learn=0.20.2 version from a Native qiime2-2018.11 install on a Mac in terminal.

Following the prompt on:

I tried:
conda install --override-channels -c defaults scikit-learn=0.20.2

Result: Solving environment: failed

UnsatisfiableError: The following specifications were found to be in conflict:

  • q2-alignment=2018.11.0
  • scikit-learn=0.20.2
    Use "conda info " to see the dependencies for each package.

Is there a way to remove “- q2-alignment=2018.11.0” to resolve this conflict without confusing all its dependencies?

Hello Ryan,

Welcome to the Qiime 2 forums! :qiime2:

Nope. Installing one will break the other. :woman_shrugging:

... So, this is a great time to use different conda environments! Each conda environment let's you install separate software, so you could have one conda environment for Qiime 2, and a second, different conda environment for the new scikit-learn.

Presumably, you already have the qiime 2 conda environment set up. Here is how you might make a new conda environment:

conda create -n NewScikitEnvironmentName scikit-learn=0.20.2

Then you can type source activate NewScikitEnvironmentName to make use of the new scikit-learn, while still having qiime2-2018.11 in the other conda environment.

Let me know if that works well for you,


This worked great. Thanks!

1 Like