Skip to content

Python Installation

tester2024 edited this page Oct 27, 2026 · 1 revision

Python Installation

MHDDoS needs Python 3.11 or newer. The instructions below install a suitable interpreter and the venv tools.

Ubuntu

sudo apt update
sudo apt install python3 python3-venv python3-pip
python3 --version

If your Ubuntu release ships an older Python, the deadsnakes PPA has newer builds:

sudo apt install software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.12 python3.12-venv python3.12-dev

Use python3.12 when creating the virtual environment.

Debian

sudo apt update
sudo apt install python3 python3-venv python3-pip

For an older Debian release, install a newer Python from backports or build it from source.

Fedora and CentOS

Fedora:

sudo dnf install python3 python3-pip

CentOS Stream / RHEL:

sudo dnf install python3 python3-pip

macOS

Install with Homebrew:

brew install python
python3 --version

Or download the official installer from python.org/downloads/macos.

Windows

Download the installer from python.org/downloads/windows and select Add Python to PATH during setup.

Verify in PowerShell:

py -3.12 --version

If py is not available, use python --version.

Virtual environment

Always install MHDDoS into a virtual environment:

python3 -m venv .venv
source .venv/bin/activate        # Windows: .venv\Scripts\activate
python -m pip install --upgrade pip
pip install -r requirements.txt

Next step

Return to Installation to install MHDDoS, or run:

python start.py DOCTOR

Clone this wiki locally