Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

old sklearn version in Jupyter Notebook

I update sklearn version by terminal with

conda install scikit-learn=0.18

if I list with conda list scikit-learn

# packages in environment at /Users/Claudia/anaconda:
scikit-learn              0.18.1              np111py27_1
scikit-learn              0.18.1                    <pip>

but if I run in notebook

print('The scikit-learn version is {}.'.format(sklearn.__version__))

the result is

The scikit-learn version is 0.17.1.

How can I solve and update also the version in Jupyter Notebook?

like image 476
Claudia Avatar asked Dec 24 '22 21:12

Claudia


1 Answers

to update the version used by Jupyter you need to open terminal by Jupiter interface jupyter interface

and run command from here

 conda update scikit-learn

the mistake was the use of the system terminal.

like image 200
Claudia Avatar answered Dec 26 '22 13:12

Claudia