libsvm的python安装问题

libsvm-3.17,简单的把python文件夹下面的svm.py和svm.util.py拷贝到python安装目录下的Libs文件夹里面就能用。

之前一直报错

Traceback (most recent call last):
  File "C:\Users\PC\Desktop\Python27\MyProject\src\Main.py", line 12, in <module>
    from Classifier.svm import *
  File "C:\Users\PC\Desktop\Python27\MyProject\src\Classifier\svm.py", line 14, in <module>
    libsvm = CDLL('../windows/libsvm.dll')
  File "C:\Python27\lib\ctypes\__init__.py", line 365, in __init__
    self._handle = _dlopen(self._name, mode)
WindowsError: [Error 126] The specified module could not be found
是因为安装的python为64bit版本,而libsvm只支持32bit版

你可能感兴趣的:(Python,Machine,Learning)