1. Home
  2. Install pgAdmin 4 on Ubuntu 16.04

Install pgAdmin 4 on Ubuntu 16.04

Install dependencies, create a virtual environment, download, install & configure

 

apt-get install virtualenv python-pip libpq-dev python-dev

Run the following command.
virtualenv pgadmin4

 

 

Install dependencies, create a virtual environment, download, install & configure

First need to install the basic packages

apt-get install virtualenv python-pip libpq-dev python-dev

Run the following command.
virtualenv pgadmin4
It will execute the 
cd pgadmin4
source bin/activate

wget https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v1.4/pip/pgadmin4-1.4-py2.py3-none-any.whl

pip install pgadmin4-1.4-py2.py3-none-any.whl 

Configure

Write the SERVER_MODE = False in lib/python2.7/site-packages/pgadmin4/config_local.py to configure to run in single-user mode:

echo "SERVER_MODE = False" >> lib/python2.7/site-packages/pgadmin4/config_local.py

Run

python lib/python2.7/site-packages/pgadmin4/pgAdmin4.py

Access at http://localhost:5050

 

Updated on February 14, 2018

Was this article helpful?

Comments

  1. pip install pgadmin4-1.4-py2.py3-none-any.whl
    Giving error —>
    Collecting psycopg2==2.6.2 (from pgadmin4==1.4)
    Downloading psycopg2-2.6.2.tar.gz (376kB)
    100% |████████████████████████████████| 378kB 2.0MB/s
    Complete output from command python setup.py egg_info:
    running egg_info
    creating pip-egg-info/psycopg2.egg-info
    writing pip-egg-info/psycopg2.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt
    writing manifest file ‘pip-egg-info/psycopg2.egg-info/SOURCES.txt’
    Error: could not determine PostgreSQL version from ‘10.1’

    —————————————-
    Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-P6Xf1d/psycopg2/

  2. Error: could not determine PostgreSQL version from ‘10.3’

    —————————————-
    Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-install-zig5uwnr/psycopg2/

  3. Hola, when I running this command pip install pgadmin4-1.4-py2.py3-none-any.whl
    show this error:

    Collecting psycopg2==2.6.0
    Downloading https://files.pythonhosted.org/packages/dd/c7/9016ff8ff69da269b1848276eebfb264af5badf6b38caad805426771f04d/psycopg2-2.6.tar.gz (367kB)
    100% |████████████████████████████████| 368kB 1.8MB/s
    Complete output from command python setup.py egg_info:
    running egg_info
    creating pip-egg-info/psycopg2.egg-info
    writing pip-egg-info/psycopg2.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt
    writing manifest file ‘pip-egg-info/psycopg2.egg-info/SOURCES.txt’
    warning: manifest_maker: standard file ‘-c’ not found

    Error: could not determine PostgreSQL version from ‘10.4’

    —————————————-
    Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-install-6kDecK/psycopg2/

    1. same here:

      Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-Y30ot3/psycopg2/

  4. couldn’t recognize the directory given in the run option and the configuration options, No such file or directory.

  5. I get this working by installing pgAdmin globally

    sudo pip install pgAdmin4

    than in:

    echo “SERVER_MODE = False” >> /usr/local/lib/python2.7/dist-packages/pgadmin4/config_local.py

    and finally (in the pgAdmin4 folder):

    sudo python pgAdmin4.py

Add A Comment