sqlacodegen command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
sqlacodegen: command not found
or when using sudo you get the following error message
sudo: sqlacodegen: command not found
Solutions to sqlacodegen: command not found
How To Fix sqlacodegen: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu sqlacodegen is provided by sqlacodegen package.
sqlacodegen is:
This is a tool that reads the structure of an existing database and generates the appropriate SQLAlchemy model code, using the declarative style if possible.
To fix this problem, we can install more using the command below.
sudo apt-get -y install sqlacodegen
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install sqlacodegen.
sudo apt -y install sqlacodegen
Or if you have aptitude installed you can use the following command.
sudo aptitude install sqlacodegen
Summary
In this tutorial we learn how to fix sqlacodegen command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.