How to update scikit-learn package in anaconda

I am trying to upgrade the scikit-learn package from 0.16 to 0.17. For this I am trying to use binaries from this site: http://www.lfd.uci.edu/~gohlke/pythonlibs/#scikit-learn . I have Windows 7 x64 bit. I downloaded the appropriate package locally and gave the following commands and received a request already updated:

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 updating it from a remote site and got a 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

There are two versions on the remote site: 0.16 and 0.17. Is there a way to specify the version in a command? Or how to install / update the wheel file?

+15
source share
5 answers

Anaconda conda, . , :

conda update conda

scikit-learn,

conda install scikit-learn=0.17

. conda Windows, FAQ: http://docs.continuum.io/anaconda/faq

+23

scikit- Anaconda-Jupyter.

scikit-learn 0.19.1 0.19.2 anaconda, Ubuntu Google:

:

-, , :

conda list    

. scikit-Learn. , :

scikit-learn              0.19.1           py36hedc7406_0  

0.19.2 2018 , .. .

conda config --append channels conda-forge
conda install scikit-learn=0.19.2

0.17 :

conda install scikit-learn=0.17

, scikit-learn, :

conda list 

:

scikit-learn              0.19.2          py36_blas_openblasha84fab4_201  [blas_openblas]  conda-forge

: pip, Anaconda Miniconda

:

!conda update conda 
!pip install -U scikit-learn

, conda list , .

- http://scikit-learn.org/stable/install.html : . scikit-learn, Anaconda conda, .

+6

conda. Conda - anconda. conda, "" .

conda , scipy 0.17.

conda install scipy=0.17.0
+4

, scikit-learn,

-1: (Ctrl + Alt + t)

Step-2: Now to check the installed packages along with the versions installed on your conda by typingconda list

Step-3: Now for the update type below the command

conda update scikit-learn

Hope this helps!

+2
source

If you use Jupyter in anaconda, after conda update scikit-learnin the terminal close anaconda and restart, otherwise the error will be repeated.

0
source

Source: https://habr.com/ru/post/1615636/


All Articles