hypercorn command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
hypercorn: command not found
or when using sudo you get the following error message
sudo: hypercorn: command not found
Solutions to hypercorn: command not found
How To Fix hypercorn: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu hypercorn is provided by python3-hypercorn package.
python3-hypercorn is:
Hypercorn is an ASGI web server based on the sans-io hyper, h11, h2, and wsproto libraries and inspired by Gunicorn. Hypercorn supports HTTP/1, HTTP/2, WebSockets (over HTTP/1 and HTTP/2), ASGI/2, and ASGI/3 specifications. Hypercorn can utilise asyncio, uvloop, or trio worker types.
Hypercorn can optionally serve the current draft of the HTTP/3 specification using the aioquic library.
Hypercorn was initially part of Quart before being separated out into a standalone ASGI server. Hypercorn forked from version 0.5.0 of Quart.
To fix this problem, we can install more using the command below.
sudo apt-get -y install python3-hypercorn
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install python3-hypercorn.
sudo apt -y install python3-hypercorn
Or if you have aptitude installed you can use the following command.
sudo aptitude install python3-hypercorn
Summary
In this tutorial we learn how to fix hypercorn command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.