How to install pgAdmin 4 on Ubuntu 16.04 ? Lack of information on homepage.
https://www.pgadmin.org/ https://www.postgresql.org/ftp/pgadmin3/pgadmin4/
How to install pgAdmin 4 on Ubuntu 16.04 ? Lack of information on homepage.
https://www.pgadmin.org/ https://www.postgresql.org/ftp/pgadmin3/pgadmin4/
These are the steps I followed to make it run:
1) I didn't have
virtualenvwrapper
installed, so I (duh!) installed it2) Standing on my home folder, I made a
pgadmin
virtual environment, which creates apgadmin
folder, inside of which I tell it to activate itself3) Inside my virtual environment, I make sure to have required dependencies so I'd be able to build
wheel
forpycrypto
andpsycopg2
4) Having the required deps, now I can download and pip install the latest pgadmin4 release
5) pgAdmin4 is installed in my virtualenv, now I need to create a
config_local.py
in the same folder it was installed, and I will useconfig.py
as the base. So, let's find that one first:6) It tells me it's in
./lib/python2.7/site-packages/pgadmin4/config.py
so now I can copy it and run pgAdmin4:The webapp is now running at http://localhost:5050
### EDIT ###
To avoid updating this thread each time a new version of pgAdmin4 is released, i made a pgadmin4_installer repo at GitHub with:
Those are the instructions to install in Server mode. For Desktop mode, see How to install pgAdmin 4 in desktop mode on Ubuntu 16.04.
For pgAdmin 4 v1.4 on Ubuntu 16.04, according to the download page:
Install dependencies, create a virtual environment, download, install & configure
Configure
lib/python2.7/site-packages/pgadmin4/config_local.py
Run
Access at http://localhost:5050
One way to install
pgadmin4
is to download its Python wheel at https://www.postgresql.org/ftp/pgadmin3/pgadmin4/v1.0-beta1/pip/ and then usepip
to install it:Note that the wheel only works for Python 2. If you get an error message that says "Error: pg_config executable not found.", install
pg_config
by runningsudo apt-get install libpq-dev
according to https://stackoverflow.com/q/11618898/486919.According to https://www.pgadmin.org/download/pip4.php, to run
pgadmin4
, do the following: