Installing PgAdmin 4
-
2. Installing PgAdmin 4
Then to Install PgAdmin 4 on Linux
First, make the Target Directories:sudo mkdir /var/lib/pgadmin
And again:
sudo mkdir /var/log/pgadmin
Next give ownership to the current User:
sudo chown $USER /var/lib/pgadmin
sudo chown $USER /var/log/pgadmin
Then set up a Python 3 Virtual Enviroment to run PgAdmin with:
python3 -m venv pgadmin4
Switch to the Virtual Env:
source pgadmin4/bin/activate
Now to Install PgAdmin 4 inside it play:
pip install pgadmin4
Follow running PgAdmin 4:
pgadmin4
Contents