pgAdmin 4 (Python)
Maintainer: pgAdmin Development Team
A Python package is available for those wishing to run pgAdmin as a web application in a Python environment. Note that the packages do not include the Desktop Runtime.
pgAdmin is available on PyPi. To install it, create a virtual environment as required, and then use pip to install. Note that pgAdmin will run in server mode, using system-wide paths so you may need to create them first:
$ sudo mkdir /var/lib/pgadmin $ sudo mkdir /var/log/pgadmin $ sudo chown $USER /var/lib/pgadmin $ sudo chown $USER /var/log/pgadmin $ python3 -m venv pgadmin4 $ source pgadmin4/bin/activate (pgadmin4) $ pip install pgadmin4 ... (pgadmin4) $ pgadmin4 NOTE: Configuring authentication for SERVER mode. Enter the email address and password to use for the initial pgAdmin user account: Email address: firstname.lastname@example.org Password: Retype password: Starting pgAdmin 4. Please navigate to http://127.0.0.1:5050 in your browser. * Serving Flask app "pgadmin" (lazy loading) * Environment: production WARNING: Do not use the development server in a production environment. Use a production WSGI server instead. * Debug mode: off
Manual installation with a Python Wheel package
To install, download the wheel and install with a command such as
pip install https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v4.23/pip/pgadmin4-4.23-py3-none-any.whl or
pip install ./pgadmin4-4.23-py3-none-any.whl if you've manually downloaded the file. It is strongly recommended that a Python Virtual Environment is used.
pgAdmin can now be run with a command like
python ~/pgadmin4/lib/python3.8/site-packages/pgadmin4/pgAdmin4.py (assuming you use a virtual environment at ~/pgadmin4). Finally, point your browser to http://127.0.0.1:5050.
Please see the online documentation for information on deploying pgAdmin 4 behind a web server.
Nightly snapshot builds generated from the head of the master branch are available here.
The Python packages are signed with a GPG signature for each downloadable file in the corresponding .asc file. The public key for these signatures can be found on OpenPGP keyservers, for example here. The GPG key UID is Package Manager (Package Signing Key) <email@example.com> and has a fingerprint of E869 7E2E EF76 C02D 3A63 3277 8881 B2A8 2109 76F2.