flit command not found

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

Introduction

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

flit: command not found

or when using sudo you get the following error message

sudo: flit: command not found

Solutions to flit: command not found

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

In Ubuntu flit is provided by flit package.

flit is:

Flit is a easy way to put Python packages and modules on PyPI. It tries to require less thought about packaging and help you avoid common mistakes.

Flit supports PEP 517 Python packaging and PEP 621 project metadata.

Make the easy things easy and the hard things possible is an old motto from the Perl community. Flit is entirely focused on the easy things part of that, and leaves the hard things up to other tools.

Specifically, the easy things are pure Python packages with no build steps (neither compiling C code, nor bundling Javascript, etc.). The vast majority of packages on PyPI are like this: plain Python code, with maybe some static data files like icons included.

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

sudo apt-get -y install flit

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

You can also use apt command to install flit.

sudo apt -y install flit

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

sudo aptitude install flit

Summary

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