美文网首页程序员
Install libsvm for Python on Mac

Install libsvm for Python on Mac

作者: 小学增 | 来源:发表于2017-06-09 17:02 被阅读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  ^_^

    相关文章

      网友评论

        本文标题:Install libsvm for Python on Mac

        本文链接:https://www.haomeiwen.com/subject/lpkfqxtx.html