Issue
I am getting the error as below while trying to execute "from sklearn import preprocessing".
ImportError: No module named 'sklearn'.
My python version is 3.5.
Can someone please help on this.
Regards, Philip
Solution
Without more information, I can only think maybe you don't have the library installed. Make sure you have NumPy and SciPy installed. Then make sure Scikit learn is actually installed. If you search how to install sklearn, a ton of results will show up instructing you how to do so. Basically,:
- Install NumPy >= 1.6.1
- Install SciPy >= 0.9
- Install scikit-learn
Here is a link http://scikit-learn.org/stable/developers/advanced_installation.html.
If you are using pip, you can do pip install numpy scipy
. Conda is similar, conda install numpy
and conda install scipy
.
I'm making a lot of assumptions here, so I'm not sure this is much help. Hopefully a good start though.
Answered By - User1
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.