gunicorn command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
gunicorn: command not found
or when using sudo you get the following error message
sudo: gunicorn: command not found
Solutions to gunicorn: command not found
How To Fix gunicorn: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu gunicorn is provided by gunicorn package.
gunicorn is:
Green Unicorn (gunicorn) is an HTTP/WSGI server designed to serve fast clients or sleepy applications. That is to say; behind a buffering front-end server such as nginx or lighttpd.
- Optional support for Eventlet, Tornado and Gevent to provide asynchronous long-polling (“Comet”) connections.
- Process management: Gunicorn reaps and restarts workers that die.
- Easy integration with Django and Paster compatible applications (Pylons, TurboGears 2, etc.
- Load balancing via pre-fork and a shared socket
- Graceful worker process restarts
- Upgrading without losing connections
- Decode chunked transfers on-the-fly, allowing upload progress notifications or stream-based protocols over HTTP
To fix this problem, we can install more using the command below.
sudo apt-get -y install gunicorn
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install gunicorn.
sudo apt -y install gunicorn
Or if you have aptitude installed you can use the following command.
sudo aptitude install gunicorn
Summary
In this tutorial we learn how to fix gunicorn command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.