Installing MudPi
Download and install the MudPi core system on your Raspberry Pi.
Prerequisites
Make sure you've completed the Raspberry Pi Setup guide before proceeding. MudPi requires Python 3.9+ and Raspberry Pi OS Bullseye or later.
Quick Install
The fastest way to get MudPi running:
curl -sL https://install.mudpi.app | bash
This script installs Python 3, Redis, GPIO libraries, and the MudPi core automatically. It handles virtual environment setup for you.
What Gets Installed
Manual Installation
Prefer to install step by step? Follow along below.
1. Install System Dependencies
sudo apt update
sudo apt install -y python3 python3-pip python3-venv python3-dev redis-server
2. Clone MudPi
cd ~
git clone https://github.com/olixr/MudPi.git
cd MudPi
3. Create a Virtual Environment & Install Python Packages
Raspberry Pi OS Bookworm and later enforces PEP 668, which prevents installing Python packages system-wide with pip. Use a virtual environment instead:
python3 -m venv --system-site-packages venv
source venv/bin/activate
pip install -r requirements.txt
Why --system-site-packages?
--system-site-packages flag gives the virtual environment access to system-installed packages like RPi.GPIO and gpiozero, which are pre-installed on Raspberry Pi OS and work best from the system Python.4. Start Redis
Enable Redis to start automatically on boot:
sudo systemctl enable redis-server
sudo systemctl start redis-server
Tip
redis-cli ping — you should get PONG in response.Verify Installation
Make sure your virtual environment is active, then check that MudPi is installed correctly:
source ~/MudPi/venv/bin/activate
python3 mudpi.py --version
Next Steps
Proceed to Your First Garden Setup to connect sensors and start monitoring.