I am using Python 2.7.10 and have installed scikit-0.15.2 using pip and i already have "numpy-1.1.10" and "scipy-0.16.0" installed and it works fine but when i try to import TfidfVectorizer from sklearn to construct a term document matrix with tf-idf values
from sklearn.feature_extraction.text import TfidfVectorizer
i get an error:
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
import sklearn
File "C:\Python27\lib\site-packages\sklearn\__init__.py", line 37, in <module>
from . import __check_build
ImportError: cannot import name __check_build
I have already gone through the earlier post and tried the solutions but it didn't work.
import scipy
works from your script?import scipy
works will verify that you have it installed, and that the Python interpreter you are running the script in is able to find the library.