Difference between scikit-learn and sklearn (now deprecated)

Regarding the difference sklearn vs. scikit-learn:
The package “scikit-learn” is recommended to be installed using pip install scikit-learn but in your code imported using import sklearn.

A bit confusing, because you can also do pip install sklearn and will end up with the same scikit-learn package installed, because there is a “dummy” pypi package sklearn which will install scikit-learn for you.

From this thread:

scikit-learn is in install_requires of sklearn setup.py so you do
end-up with scikit-learn installed

So:

At the end, pip install sklearn or pip install scikit-learn
apart from the annoying sklearn (0.0) showed in the pip list
will install the latest available build from PyPI.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)