Install Libsvm Python Windows

19.09.2019by admin

Sorry, but I can't replicate this issue. I just installed python-weka-wrapper on a clean Win7 32 bit installation (inside virtualbox), with Java 8 (update 45). I used the weka.jar that comes with python-weka-wrapper (on my machine, located in 'C: Python27 Lib site-packages weka lib') to fire up the package manager and install LibSVM 1.0.6. Hi Dario I think it might have something to do with that.

Windows Install Python 3

Because WinPython doesn't 'install' Python on the local Windows. It is self-contained.

The simple answer is, libsvm is not a python package, and you cannot import it directly from python. But you can use ctypes to import it into python.

I tried running the package manager from the weka jar inside the WinPython installation by doing: C: WinPython-64bit-2.7.9.2 python-2.7.9.amd64 Lib site-packages weka libjava -jar weka.jar weka.core.WekaPackageManager But that showed LibSVM as already installed. When I tried running jvm.start(packages=True) I got an error that said the path: C: WinPython-64bit-2.7.9.2 settings wekafiles packages. couldn't be found. Looks like WinPython changes the behavior of expanding ', using its own top-level directory. I've just committed some changes that allow you to specify an alternative location for the Weka home directory: That should solve your problem. Thanks for using the wrapper!

Pywin32

Dario Peralta 02:11. Getting it working was a simple matter after you made this change. Here's what I did (in case anyone has a similar problem in the future): 1. Started from a clean install of WinPython 2.

  1. Install “python 2.6” (32 bit windows version) from: - during installation a C++ error might show. 5.) Install LibSVM (“libsvm-3.18.win32-py2.6.exe”) from. (Febrl works with an earlier version of Python (2.6) plus you will need to install several modules.
  2. It depends on the distribution. It is in some of their repositories so this code sudo apt-get libsvm-tools /code or this code sudo yum install libsvm /code would do it.

Installed javabridge following the instructions given by the WinPython team 3. Downloaded python-weka-wrapper from github 4. Used WinPython Package Manager to install directly from the source zip file 5. Passed the path to the Weka home dir as the value for the packages parameter of jvm.start Excellent! Cheers, Peter.