Sublime Forum

Installing SKlearn for python

#1

Hi,
I’m a total newb with sublime.
I installed the sklearn package for python for my windows computer. (scikit-learn.org/stable/install.html)
It works fine on the Spyder IDE. But when I try the same code in sublime it doesn’t work
“from sklearn import svm” gives me the following error:

Traceback (most recent call last):
File “C:\Users\mjiang\def.py”, line 1, in
from sklearn import svm
ImportError: No module named sklearn
[Finished in 0.2s with exit code 1]

any help will be appreciated.
Thanks.

0 Likes

#2

Possibly not a great help because this is not a solution, rather identifying the likely cause of your problem. ST3 has its own embedded Python interpreter, so if you installed SKlearn in some other instance of Python on Windows, ST3’s Python won’t know about it. I don’t know if it’s advisable / possible to install additional packages in ST3’s Python.

0 Likes