Install Pgadmin4 on Ubuntu/Linux
Today I tell yo how to install pgadmin4 on ubuntu/linux
Firstly,
Using Python2.x
2 3 4 5 6 7 8 9 |
sudo apt-get install virtualenv python-pip libpq-dev python-dev cd virtualenv pgadmin4 cd pgadmin4 source bin/activate pip install https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v4.6/pip/pgadmin4-4.6-py2.py3-none-any.whl |
Using Python3.6 (Preferred to avoid encoding related issues)
2 3 4 5 6 7 8 9 |
sudo apt-get install virtualenv python3-pip libpq-dev python3-dev cd virtualenv -p python3 pgadmin4 cd pgadmin4 source bin/activate pip3 install https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v4.6/pip/pgadmin4-4.6-py2.py3-none-any.whl |
Configure
2 |
nano lib/python2.7/site-packages/pgadmin4/config_local.py |
write this in the generated file
2 3 4 5 6 7 8 |
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 |
Run
2 3 |
python lib/python2.7/site-packages/pgadmin4/pgAdmin4.py |
Access
Access at http://localhost:5050
if you have question do not forget to write from the chat button next to it or from the comment
Recent Comments