Forums

Is it possible to update Scikit-Learn ?

Hi,

I wanted to use a prepared pickled model for scikit-learn but the version used here 0.14 and I need 0.15.1 at least.

Is there anyway to update it, trying via bash fails due to lack of sudo access, and you can't install locally with pip when the package is already installed.

Short of buggering about reinstalling every package in a virtualenv, is there any way of doing this?

Hi Jamesmcm,

try pip install --user --upgrade scikit-learn==0.15.1

I am trying the above and I'm getting an error. Is pip install --user --upgrade scikit-learn==0.18.1 the exact syntax

I am trying the above and I'm getting an error. Is pip install --user --upgrade scikit-learn==0.18.1 the exact syntax

Yes, that should work fine. What's the exact error you're getting? Maybe a silly question, but are you running it in a bash console (as opposed to a Python one)?

I was running it in a Python console, is that incorrect?

No. Use a Bash console.