Code: Select all
sudo apt-get update
Code: Select all
sudo apt-get install build-essential libssl-dev libffi-dev libgmp3-dev virtualenv python-pip libpq-dev python-dev
Code: Select all
mkdir pgadmin4
cd pgadmin4
virtualenv pgadmin4
cd pgadmin4
source bin/activate
https://ftp.postgresql.org/pub/pgadmin/ ... ne-any.whl
copy pgadmin4-4.21-py2.py3-none-any.whl ไปยัง folder pgadmin4
Code: Select all
pip install pgadmin4-4.21-py2.py3-none-any.whl
Code: Select all
vim lib/python2.7/site-packages/pgadmin4/config_local.py
Code: Select all
import os
DATA_DIR = os.path.realpath(os.path.expanduser(u'~/.pgadmin/'))
LOG_FILE = os.path.join(DATA_DIR, 'pgadmin4.log')
SQLITE_PATH = os.path.join(DATA_DIR, 'pgadmin4.db')
SESSION_DB_PATH = os.path.join(DATA_DIR, 'sessions')
STORAGE_DIR = os.path.join(DATA_DIR, 'storage')
SERVER_MODE = False
Code: Select all
python lib/python3.8/site-packages/pgadmin4/pgAdmin4.py