celery command not found

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

Introduction

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

celery: command not found

or when using sudo you get the following error message

sudo: celery: command not found

Solutions to celery: command not found

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

In Ubuntu celery is provided by celery package.

celery is:

Celery is an open source asynchronous task queue/job queue based on distributed message passing. It is focused on real-time operation, but supports scheduling as well.

The execution units, called tasks, are executed concurrently on one or more worker nodes. Tasks can execute asynchronously (in the background) or synchronously (wait until ready).

Celery is written in Python, but the protocol can be implemented in any language. It can also operate with other languages using webhooks.

The recommended message broker is RabbitMQ, but limited support for Redis, Beanstalk, MongoDB, CouchDB, and databases (using SQLAlchemy or the Django ORM) is also available. Celery is easy to integrate with Django, using the python-django-celery package.

This package contains the common files of the library.

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

sudo apt-get -y install celery

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

You can also use apt command to install celery.

sudo apt -y install celery

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

sudo aptitude install celery

Summary

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