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
):