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
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/
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/
how to update the pgadmin4 1.4 to pgadmin 2.1 ?
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/
same here:
Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-Y30ot3/psycopg2/
couldn’t recognize the directory given in the run option and the configuration options, No such file or directory.
this link is better
https://linuxhint.com/install-pgadmin4-ubuntu/
I have the same issue
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
I pip install pgAdmin4 not working, install it from https://www.postgresql.org/ftp/pgadmin/pgadmin4/v3.6/pip/
for example
pip install pgadmin4-3.6-py2.py3-none-any.whl