TensorFlow - Core Learning Algorithms Error for Code

Tell us what’s happening:

sklearn does not install, gives me this error × python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
Preparing metadata (setup.py) … error
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36

Challenge Information:

TensorFlow - Core Learning Algorithms

Welcome to the forum :wave:

Can you please share your code or… command line? Environment etc.

I think this is it:
https://pypi.org/project/sklearn/

use pip install scikit-learn rather than pip install sklearn

If you were using this from the notebook?

!pip install -q sklearn

These videos are old and a lot of the commands are out of date, something to watch out for.