【发布时间】:2013-10-18 18:49:20
【问题描述】:
我在使用 django 时遇到以下错误:
Exception Type: ImportError
Exception Value: No module named sparse
导入错误来自:
from sklearn.svm.sparse import LinearSVC
from nltk.classify.scikitlearn import SklearnClassifier
为了解决这个问题,我尝试通过以下方式为 scikit-learn 安装稀疏模块:
sudo easy_install scikits.sparse
但我收到此错误:
no previously-included directories found matching 'doc/_build'
warning: no previously-included files matching '*~' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
clang: error: no such file or directory: 'scikits/sparse/cholmod.c'
clang: error: no input files
error: Setup script exited with error: command 'clang' failed with exit status 1
我该如何解决这个问题?
谢谢。
【问题讨论】:
标签: python scikit-learn installation clang sparse-matrix