我正在尝试从 libSVM 运行plotroc.py但我弹出了一些错误消息,我编译了库,所以我确实拥有它并且对它的调用是正确的
Traceback (most recent call last):
File "plotroc.py", line 3, in <module>
from svmutil import *
File "libsvm-master/python/svmutil.py", line 5, in <module>
from svm import *
File "libsvm-master/python/svm.py", line 303, in <module>
fillprototype(libsvm.svm_get_sv_indices, None, [POINTER(svm_model), POINTER(c_int)])
File "/opt/python-2.7/lib/python2.7/ctypes/__init__.py", line 366, in __getattr__
func = self.__getitem__(name)
File "/opt/python-2.7/lib/python2.7/ctypes/__init__.py", line 371, in __getitem__
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: libsvm-master/python/../libsvm.so.2: undefined symbol: svm_get_sv_indices
你能指出问题的根源吗?