05-07-2020, 02:14 PM
It should be easy with virtualenv:
Create e virtualnev:
# virtualenv pgadmin4
Activate it:
# source pgadmin4/bin/activate
Install pgadmin4 (check the last version, just now is v4.21)
# pip install https://ftp.postgresql.org/pub/pgadmin/p...ne-any.whl
create a config file in pgadmin4/lib/python3.7/site-packages/pgadmin4/config_local.py with something like (use the python version you have in path python3.X/site-packages):
Launch it:
# python pgadmin4/lib/python3.6/site-packages/pgadmin4/pgAdmin4.py
P.S.
for production use you should configure an apache front end as you do for tactic.
Create e virtualnev:
# virtualenv pgadmin4
Activate it:
# source pgadmin4/bin/activate
Install pgadmin4 (check the last version, just now is v4.21)
# pip install https://ftp.postgresql.org/pub/pgadmin/p...ne-any.whl
create a config file in pgadmin4/lib/python3.7/site-packages/pgadmin4/config_local.py with something like (use the python version you have in path python3.X/site-packages):
Code:
import os
SERVER_MODE = False
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')
Launch it:
# python pgadmin4/lib/python3.6/site-packages/pgadmin4/pgAdmin4.py
P.S.
for production use you should configure an apache front end as you do for tactic.