Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to upgrade scikit-learn package in anaconda

I am trying to upgrade package of scikit-learn from 0.16 to 0.17. For that I am trying to use binaries from this website: http://www.lfd.uci.edu/~gohlke/pythonlibs/#scikit-learn. I have Windows 7 x64 bit. I downloaded the relevant package locally and gave following commands and got Requirement already up-to-date:

C:\Users\skumar>pip install --upgrade --use-wheel --no-index --find-links=../../ SOURCE/APPS scikit-learn Ignoring indexes: https://pypi.python.org/simple Requirement already up-to-date: scikit-learn in c:\anaconda3\lib\site-packages 

Then I tried to upgrade it from remote site and got similar result:

C:\Users\skumar>pip install --upgrade --use-wheel --no-index --trusted-host www. lfd.uci.edu --find-links=http://www.lfd.uci.edu/~gohlke/pythonlibs/ scikit-learn  Ignoring indexes: https://pypi.python.org/simple Requirement already up-to-date: scikit-learn in c:\anaconda3\lib\site-packages 

On Remote site there are two versions i.e., 0.16 & 0.17. Is there a way to specify version in command? Or how do you install/upgrade wheel file?

like image 503
Sanoj Avatar asked Nov 12 '15 19:11

Sanoj


People also ask

Is scikit-learn already installed in Anaconda?

Canopy and Anaconda for all supported platformsCanopy and Anaconda both ship a recent version of scikit-learn, in addition to a large set of scientific python library for Windows, Mac OSX and Linux. Anaconda offers scikit-learn as part of its free distribution.


1 Answers

Anaconda comes with the conda package manager which is designed to handle these kinds of upgrades. Start by updating conda itself to get the most recent package lists:

conda update conda 

And then install the version of scikit-learn you want

conda install scikit-learn=0.17 

All necessary dependencies will be upgraded as well. If you have trouble with conda on Windows, there are some relevant FAQ here: http://docs.continuum.io/anaconda/faq

like image 66
jakevdp Avatar answered Sep 22 '22 06:09

jakevdp