python ImportError:无法导入名称libsvm

时间:2013-03-15 06:24:45

标签: python-2.7 scipy libsvm scikit-learn

我尝试将svm通过scikit-learnkit用于python。但我不断得到以下错误。

> from sklearn import svm 
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib64/python2.7/site-packages/sklearn/svm/__init__.py", line 13, in 
<module>
    from .classes import SVC, NuSVC, SVR, NuSVR, OneClassSVM, LinearSVC 
  File "/usr/local/lib64/python2.7/site-packages/sklearn/svm/classes.py", line 1, in <module>
    from .base import BaseLibLinear, BaseSVC, BaseLibSVM 
  File "/usr/local/lib64/python2.7/site-packages/sklearn/svm/base.py", line 6, in <module>
    from . import libsvm, liblinear 
ImportError: cannot import name libsvm

我已检查/usr/local/lib64/python2.7/site-packages/sklearn/svm/libsvm.so是否存在

0 个答案:

没有答案