Updating scikit-learn to latest version with Anaconda environment fails with http error 000

I use Anaconda3 installed on my pc Win10 64bits.

I noticed it runs with an outdated scikit learn version (0.21.3),
and I am trying to update it (0.24.1 available on repo.anaconda.com/pkgs/main/win-64/)

I do this:

  1. cmd
  2. I go in the script directory D:ProgramDataAnaconda3Scripts
  3. conda update scikit-learn

it fails with this error message:

ProgramDataAnaconda3Scripts>conda update scikit-learn
Collecting package metadata (current_repodata.json): failed

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/win-64/current_repodata.json>
Elapsed: -

An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.

If your current network has https://www.anaconda.com blocked, please file
a support request with your network engineering team.

'https://repo.anaconda.com/pkgs/main/win-64'

It is my personal PC,
I have access to websites:
www.anaconda.com
and
repo.anaconda.com/pkgs/main/win-64/
from my webbrowser chrome, without any problem.

So what could be wrong here ?
How can I update sucessfully ?

I can download the files from repo.anaconda.com by hand if necessary, but how to install it ?

I made it work, so I share the way I did it:

  1. launch Anaconda3 gui

  2. on the left menu, click “environments”

  3. next to “base (root)”, click on the green arrow/triangle

  4. select “Open Terminal”

  5. type the command line:

    conda install scikit-learn==0.24.1

It worked without error.

Read more here: Source link