Files
ascoetpi/pgadmin4/pgAdmin on Raspberry Pi. Deploying pgAdmin 4 as a web… by Jaime Martín Agüí Medium.md

509 B

Create a Python virtual environment:

python3 -m venv pgadmin4

Navigate to the new directory and create some necessary folders:

cd ~/pgadmin4mkdir varmkdir var/storagemkdir var/sessions

Activate the virtual environment:

source /home/pi/pgadmin4/bin/activate

Install the Python pgadmin4 package:

pip install pgadmin4

This is an official package available in PyPi, maintained by the pgAdmin Development Team, that allows us to run pgAdmin as a Flask web application.