Beginner here.
I’m trying to use sklearn
in pycharm
. When importing sklearn
I get an error that reads “Import error: No module named sklearn
”
The project interpreter in pycharm
is set to 2.7.10 (/anaconda/bin/python.app), which should be the right one.
Under default preferenes, project interpreter, I see all of anacondas
packages. I've double clicked and installed the packages scikit learn
and sklearn
. I still receive the “Import error: No module named sklearn”
Does anyone know how to solve this problem?
Double check your python interpreter. Check whether you have select correct interpreter at the first when you create the project.
Or else you can check your interpreter from the project view under External Libraries.
In your case if you didn't select 2.7.10 (
/anaconda/bin/python.app
) as your interpreter for the project at the beginning still the program give the same errorImport error: No module named sklearn
.