Last active
December 26, 2017 23:03
-
-
Save mdiener21/70afcef0b9e21c590415dd597102a8d2 to your computer and use it in GitHub Desktop.
install pgadmin4 desktop ubuntu 16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# original post http://askubuntu.com/questions/831262/how-to-install-pgadmin-4-in-desktop-mode-on-ubuntu-16-04 | |
sudo apt-get install python3-venv python3-pip libpq-dev python3-dev | |
mkdir myVenvs | |
cd myVenvs | |
pyvenv pgadmin4-ve | |
source pgadmin4-v/bin/activate | |
wget https://ftp.postgresql.org/pub/pgadmin3/pgadmin4/v1.1/pip/pgadmin4-1.1-py3-none-any.whl | |
pip install pgadmin4-1.1-py3-none-any.whl | |
gedit lib/python3.5/site-packages/pgadmin4/config_local.py | |
# set server mode as below in gedit and save then exit | |
# SERVER_MODE = False | |
# create the configuration database | |
python lib/python3.5/site-packages/pgadmin4/setup.py | |
# run it | |
python lib/python3.5/site-packages/pgadmin4/pgAdmin4.py | |
# visit your browser | |
firefox http://localhost:5050 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment