程序员

Install libsvm for Python on Mac

2017-06-09  本文已影响0人  小学增

1. download package from ‘http://www.csie.ntu.edu.tw/~cjlin/libsvm/index.html’

2. unzip the package

3. cd libsvm/python

4.make

5. copy 'libsvm.so.2' to '~/python2.7/site-packages'

6.mkdir libsvm under the '~/python2.7/site-packages'

7.cd libsvm

8.touch '~/python2.7/site-packages/libsvm/__init__.py'

9.cd unzip file/python

10.copy 'svm.py、svm.pyc、svmutil.py、svmutil.pyc' to '~/python2.7/site-packages/libsvm'

11.open python IDE

12.from libsvm.svmutil import *

Now, we can use libsvm for python on Mac  ^_^

上一篇下一篇

猜你喜欢

热点阅读