在Windows中执行scikit-learn程序时出错

时间:2016-01-20 15:33:45

标签: python-2.7 nltk sentiment-analysis

当我执行以下代码时:

from nltk.classify.scikitlearn import SklearnClassifier
 sklearn.naive_bayes import MultinomialNB,BernoulliNB

我收到如下错误:

         Traceback (most recent call last):
          File "C:\Python27\uni.py", line 2, in <module>
          from sklearn.naive_bayes import MultinomialNB,BernoulliNB
          File "C:\Python27\lib\site-packages\sklearn\__init__.py", line 56, in       <module>
    from . import __check_build
ImportError: cannot import name __check_build

我是Python的新手,请帮我解决一下如何解决它

0 个答案:

没有答案