poetry command not found

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

Introduction

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

poetry: command not found

or when using sudo you get the following error message

sudo: poetry: command not found

Solutions to poetry: command not found

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

In Ubuntu poetry is provided by python3-poetry package.

python3-poetry is:

Poetry helps you declare, manage and install dependencies of Python projects, ensuring you have the right stack everywhere.

This package installs the library for Python 3.

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

sudo apt-get -y install python3-poetry

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

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

sudo apt -y install python3-poetry

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

sudo aptitude install python3-poetry

Summary

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