How to upgrade scikit-learn package in anaconda

前端 未结 6 1049
难免孤独
难免孤独 2020-12-01 05:33

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-l

6条回答
  •  时光取名叫无心
    2020-12-01 06:14

    Updating a Specific Library - scikit-learn:

    Anaconda (conda):

    conda install scikit-learn
    

    Pip Installs Packages (pip):

    pip install --upgrade scikit-learn
    

    Verify Update:

    conda list scikit-learn
    

    It should now display the current (and desired) version of the scikit-learn library.

    For me personally, I tried using the conda command to update the scikit-learn library and it acted as if it were installing the latest version to then later discover (with an execution of the conda list scikit-learn command) that it was the same version as previously and never updated (or recognized the update?). When I used the pip command, it worked like a charm and correctly updated the scikit-learn library to the latest version!

    Hope this helps!

    More in-depth details of latest version can be found here (be mindful this applies to the scikit-learn library version of 0.22):

    • Release Highlights for scikit-learn 0.22

提交回复
热议问题