-
Get source code pgAdmin4
wget https://ftp.postgresql.org/pub/pgadmin3/pgadmin4/v1.0/source/pgadmin4-1.0.tar.gz
-
Unpack pgadmin4-1.0.tar.gz in home dir
tar xvzf pgadmin4-1.0.tar.gz -C ~/
-
Install pip3
sudo apt install python3-pip
-
Install virtualenv
sudo pip3 install virtualenv
-
Create virtualenv in dir ~/py3-venv-pgadmin
virtualenv --system-site-packages --no-setuptools --python=python3.5 ~/py3-venv-pgadmin
-
Activate virtualenv
cd ~/py3-venv-pgadmin/bin source activate
-
Check pip3
which pip3 ~/py3-venv-pgadmin/bin/pip3
-
Install libpq-dev
sudo apt install libpq-dev
-
Install requrements for python 3
cd ~/pgadmin4-1.0 pip3 install -r requirements_py3.txt
-
Install qt-sdk
sudo apt install qt-sdk
-
Build the runtime
cd ~/pgadmin4-1.0/runtime qmake make
-
cd ~/pgadmin4-1.0/web touch config_local.py nano config_local.py
write:
SERVER_MODE = False
run:
python3 setup.py
-
Run pgAdmin4
python3 pgAdmin4.py
-
Exit virtualenv
deactivate
-
Remove qt-sdk
apt purge qt-sdk
-
For run pgadmin4 create script ~/pgadmin4-1.0/pgadmin4.sh
#!/usr/bin/env bash cd ~/py3-venv-pgadmin/bin source activate python3 ~/pgadmin4-1.0/web/pgAdmin4.py