I have Scikit-Learn installed on my system. How can I check its version and its availability in my system?
Canopy and Anaconda for all supported platformsCanopy and Anaconda both ship a recent version of scikit-learn, in addition to a large set of scientific python library for Windows, Mac OSX and Linux. Anaconda offers scikit-learn as part of its free distribution.
Download the source package from http://pypi.python.org/pypi/scikit-learn/ , unpack the sources and cd into the source directory. or alternatively (also from within the scikit-learn source folder): pip install . Packages installed with the python setup.py install command cannot be uninstalled nor upgraded by pip later.
scikit-learn 1.1. 2.
This seems like a duplicate of this question
As mentioned there you can do this from a Python REPL:
import sklearn
print(sklearn.__version__)
If scikit-learn is not found on your system, you will get an ImportError: No module named sklearn
. If scikit-learn was installed inside a virtualenv, you will need to make sure it is activated via source bin/activate
from the virtualenv root directory.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With