tpot command not found

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

Introduction

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

tpot: command not found

or when using sudo you get the following error message

sudo: tpot: command not found

Solutions to tpot: command not found

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

In Ubuntu tpot is provided by python3-tpot package.

python3-tpot is:

Consider TPOT your Data Science Assistant. TPOT is a Python Automated Machine Learning tool that optimizes machine learning pipelines using genetic programming.

TPOT will automate the most tedious part of machine learning by intelligently exploring thousands of possible pipelines to find the best one for your data.

Once TPOT is finished searching (or you get tired of waiting), it provides you with the Python code for the best pipeline it found so you can tinker with the pipeline from there.

TPOT is built on top of scikit-learn, so all of the code it generates should look familiar… if you’re familiar with scikit-learn, anyway.

This package contains the Python 3.x version of TPOT.

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

sudo apt-get -y install python3-tpot

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

You can also use apt command to install python3-tpot.

sudo apt -y install python3-tpot

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

sudo aptitude install python3-tpot

Summary

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