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 ~/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.