Forums

Upgrading to sklearn version 1.0.2

I developed a random forest classifier on my PC that I would like to use in an application hosted on pythonanywhere. I used scikit-learn v. 1.0.2 on my computer and haven't been able to upgrade on pythonanywhere from 0.21.3.

In a bash console, I'm using the command:

pip install --user --upgrade scikit-learn==1.0.2

and getting error:

ERROR: Could not find a version that satisfies the requirement scikit-learn==1.0.2 (from versions: 0.9, 0.10, 0.11, 0.12, 0.12.1, 0.13, 0.13.1, 0.14, 0.14.1, 0.15.0b1, 0.15.0b2, 0.15.0, 0.15.1, 0.15.2, 0.16b1, 0.16.0, 0.16.1, 0.17b1, 0.17, 0.17.1, 0.18rc2, 0.18, 0.18.1, 0.18.2, 0.19b2, 0.19.0, 0.19.1, 0.19.2, 0.20rc1, 0.20.0, 0.20.1, 0.20.2, 0.20.3, 0.20.4, 0.21rc2) ERROR: No matching distribution found for scikit-learn==1.0.2

I think version 1.0.2 should support Python 3.7+, which is what I'm running my script in here, so I'm a little lost on how to go about this.

Thanks in advance for the help!

You're installing into Python 2.7. Use pip3.7 if you want to install the module in Python 3.7

That's a pretty obvious fix.

Thank you!

Thanks for confirming that!