
Python -c "import as jvm jvm.start() jvm. virtual environment for Python 3.6 (anaconda3-2019.07): conda create -n pww36 python=3.6 Python -c "import as jvm jvm.start() jvm.stop()"Ĥ. virtual environment for Python 2.7 (anaconda3-2019.07): conda create -n pww27 python=2.7
#Install weka on windows how to
Now let's learn how to view, manage, and operate it using either the CLI or the GUI and perform the first IO to a WekaFS filesystem.
#Install weka on windows install
Pww36/bin/python -c "import as jvm jvm.start() jvm.stop()"ģ. Lastly, install a license, change the default admin password, and make sure there are no other alerts in the system. Pww36/bin/pip install python-weka-wrapper3 virtual environment for Python 3.6 (virtualenv): virtualenv -p /usr/bin/python3.6 pww36 Pww27/bin/python -c "import as jvm jvm.start() jvm.stop()"Ģ.

Pww27/bin/pip install python-weka-wrapper virtual environment for Python 2.7 (virtualenv): virtualenv -p /usr/bin/python2.7 pww27 OK, let's create the virtual environments and test them:ġ. This command will generate output similar to the following (paths will be different, of course): DEBUG::Adding bundled jarsĭEBUG::Classpath=ĭEBUG::Package support disabled The instructions below create directories ( pww27 and pww36 in your current directory), which you can simply delete, if you no longer require these virtual environments.īut, I've also listed instructions on how to use Anaconda further below.Įach of the virtual environments will run a test command: import the jvm module, start and stop the JVM, using python -c ".", to check whether the environment is working. I'm not a big fan of Anaconda, as I find it overkill, especially since virtualenv does things in a much leaner, cleaner and faster way. Though Oracle JDK is recommended, you can get it to work with OpenJDK as well, just make sure to install the sources as well: sudo apt-get install openjdk-8-source openjdk-8-jdk

The steps for installing on Mac are as follows. You just need to follow the instructions on this page to install WEKA for your OS.
#Install weka on windows mac os x
WEKA supports installation on Windows, Mac OS X and Linux. I'm not sure what you're doing wrong in your install, but here are the steps that I performed to get python-weka-wrapper installed for Python 2.7 and 3.6, on a freshly installed (and fully up-to-date) Ubuntu 18.04.1:įirst, ensure to have pip installed and you can compile source code: sudo apt-get install python-pip python3-pip virtualenv build-essential To install WEKA on your machine, visit WEKA’s official website and download the installation file.
