6

I have Scikit-Learn installed on my system. How can I check its version and its availability in my system?

Brad Solomon
  • 38,521
  • 31
  • 149
  • 235
Tanya Jain
  • 61
  • 1
  • 1
  • 2

1 Answers1

5

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.

dbep
  • 647
  • 6
  • 20