How To Install Waitress-serve On Debian, Ubuntu, Arch, Kali, Fedora And Raspbian?

How To Install Waitress-serve On Debian, Ubuntu, Arch, Kali, Fedora And Raspbian?

waitress-serve

Pure Python WSGI HTTP Server.

Maintainer: Andrej Shadura



Section: python

Install waitress-serve

  • Debian apt-get install python-waitress Click to copy
  • Ubuntu apt-get install python-waitress Click to copy
  • Arch Linux pacman -S python-waitress Click to copy
  • Kali Linux apt-get install python-waitress Click to copy
  • Fedora dnf install python3-waitress Click to copy
  • Raspbian apt-get install python-waitress Click to copy

Pure Python WSGI HTTP Server.

How to use waitress-serve?

Below are few example commands for waitress-serve that you can use in the terminal.

Run a Python web app:
waitress-serve import.path:wsgi_funcClick to copy
Listen on port 8080 on localhost:
waitress-serve --listen=localhost:8080 import.path:wsgi_funcClick to copy
Start waitress on a Unix socket:
waitress-serve --unix-socket=path/to/socket import.path:wsgi_funcClick to copy
Use 4 threads to process requests:
waitress-serve --threads=4 import.path:wsgifuncClick to copy
Call a factory method that returns a WSGI object:
waitress-serve --call import.path.wsgi_factoryClick to copy
Set the URL scheme to https:
waitress-serve --url-scheme=https import.path:wsgi_funcClick to copy
Installing waitress-serve command is simple. just copy one of the above commands for your operating system and paste it into terminal. This command is available for Debian, Ubuntu, Arch, Kali, Fedora and Raspbian operating systems. Once you run the command it will install the latest version of waitress-serve 2026 package in your OS.