Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
270 views
in Technique[技术] by (71.8m points)

python - 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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...