# scikit-learn version error?

**URL:** https://forum.qiime2.org/t/scikit-learn-version-error/20063
**Category:** User Support
**Tags:** feature-classifier
**Created:** [July 1, 2021, 9:24am UTC](https://forum.qiime2.org/t/scikit-learn-version-error/20063 "2021-07-01T09:24:09Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![qqqqa](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/q/e19b73/32.png) [@qqqqa](https://forum.qiime2.org/u/qqqqa)
#### Post date: [July 1, 2021, 9:24am UTC](https://forum.qiime2.org/t/scikit-learn-version-error/20063/1 "2021-07-01T09:24:09Z")

</div>

Plugin error from feature-classifier:

The scikit-learn version (0.23.1) used to generate this artifact does not match the current version of scikit-learn installed (0.24.2). Please retrain your classifier for your current deployment to prevent data-corruption errors.

Debug info has been saved to /tmp/qiime2-q2cli-err-953fotk6.log

my qiime2 is2021.4  
What can I do to make it work ?

---

<div class="post-metadata">

### Author: ![SoilRotifer](https://forum.qiime2.org/user_avatar/forum.qiime2.org/soilrotifer/32/21071_2.png) [@SoilRotifer](https://forum.qiime2.org/u/SoilRotifer)
#### Post date: [July 1, 2021, 2:16pm UTC](https://forum.qiime2.org/t/scikit-learn-version-error/20063/2 "2021-07-01T14:16:59Z")

</div>

Hi @qqqqa, welcome to :qiime2:!

If you [search the forum](https://forum.qiime2.org/search?q=scikit%20learn%20version) you'll find that this has been addressed on several occasions. Please see the following threads to start:

> [@scikit-learn version warning](https://forum.qiime2.org/t/scikit-learn-version-warning/15206/3):
>
> Hi @Irshad! The scikit-learn version (0.21.2) used to generate this artifact does not match the current version of scikit-learn installed (0.20.2). Scikit-learn requires you to use a classifier that was trained with the same version as scikit-learn that you're using to run your command. This protects your analysis from unexpected behavior. If you are using a pre-trained classifier from the [QIIME 2 docs](https://docs.qiime2.org/2020.2/data-resources/), make sure that the version of QIIME 2 you're using is the same as the version of the docs…

> [@scikit-learn version error](https://forum.qiime2.org/t/scikit-learn-version-error/9484):
>
> Hi, I try to use silva classifier as provided in the “[Taxonomy classifiers for use with q2-feature-classifier](https://docs.qiime2.org/2018.2/data-resources/)” tutorial. when i run the command: qiime feature-classifier classify-sklearn --i-classifier silva-119-99-515-806-nb-classifier.qza --i-reads rep-seqs.qza --o-classification taxonomy-silva.qza I get this error: Plugin error from feature-classifier: The scikit-learn version (0.19.1) used to generate this artifact does not match the current version of scikit-learn installed (0.20.2). P…

> [@Silva classifier scikit learn version issue](https://forum.qiime2.org/t/silva-classifier-scikit-learn-version-issue/14404):
>
> I am having an issue using Silva to classify my reads. I used the following command qiime feature-classifier classify-sklearn --i-classifier silva-132-99-515-806-nb-classifier.qza --i-reads allreps\_rep-seq.qza --o-classification allrepstaxonomy.qza And I received this error The scikit-learn version (0.21.2) used to generate this artifact does not match the current version of scikit-learn installed (0.22.1). I'm guessing I need a newer version of Silva but I can't find it on their archive, an…

-Mike

---

<div class="post-metadata">

### Author: ![system](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/3X/2/1/21af5fe23cb6f4579467c66a9ed94e55274ca7bd.svg) [@system](https://forum.qiime2.org/u/system)
#### Post date: [August 1, 2021, 8:17pm UTC](https://forum.qiime2.org/t/scikit-learn-version-error/20063/3 "2021-08-01T20:17:42Z")

</div>

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
