$ wget http://www.csie.ntu.edu.tw/~cjlin/cgi-bin/libsvm.cgi+http://www.csie.ntu.edu.tw/~cjlin/libsvm+tar.gz $ tar xvfz libsvm-3.12.tar.gz $ cd libsvm-3.12 $ make $ cd python $ make $ vi svm.py libsvm = CDLL(os.path.join(os.path.dirname(__file__),\ '/usr/local/lib/libsvm.so.2')) <- 変更 #'../libsvm.so.2')) $ su # cp *.py /usr/local/lib/python2.7/site-packages # cd .. # cp libsvm.so.2 /usr/local/lib # mkdir /usr/local/libsvm # cp svm-predict svm-scale svm-train /usr/local/libsvm # cp tools/*.py /usr/local/libsvm $ python >>> from svm import * <- エラーが出なければOK