1

我试图svm通过scikit-learnkitpython 使用。但我不断收到以下错误。

> 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是否存在

4

0 回答 0