fasttext command not found

In this troubleshooting guide we learn how to fix fasttext command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

fasttext: command not found

or when using sudo you get the following error message

sudo: fasttext: command not found

Solutions to fasttext: command not found

How To Fix fasttext: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu fasttext is provided by fasttext package.

fasttext is:

fastText is a library for efficient learning of word representations and sentence classification, which refers subword information to enrich word vectors.

To fix this problem, we can install more using the command below.

sudo apt-get -y install fasttext

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install fasttext.

sudo apt -y install fasttext

Or if you have aptitude installed you can use the following command.

sudo aptitude install fasttext

Summary

In this tutorial we learn how to fix fasttext command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.