weka command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
weka: command not found
or when using sudo you get the following error message
sudo: weka: command not found
Solutions to weka: command not found
How To Fix weka: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu weka is provided by weka package.
weka is:
Weka is a collection of machine learning algorithms in Java that can either be used from the command-line, or called from your own Java code. Weka is also ideally suited for developing new machine learning schemes.
Implemented schemes cover decision tree inducers, rule learners, model tree generators, support vector machines, locally weighted regression, instance-based learning, bagging, boosting, and stacking. Also included are clustering methods, and an association rule learner. Apart from actual learning schemes, Weka also contains a large variety of tools that can be used for pre-processing datasets.
This package contains the binaries and examples.
To fix this problem, we can install more using the command below.
sudo apt-get -y install weka
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install weka.
sudo apt -y install weka
Or if you have aptitude installed you can use the following command.
sudo aptitude install weka
Summary
In this tutorial we learn how to fix weka command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.