This will also work with pyenv, but if its confusing I can make different notes.
Following these exact steps will not require a username and password to access pgadmin4, since its running in "desktop" mode.
virtualenv --system-site-packages --no-setuptools --python=python3.6 ~/py3-venv-pgadmincd ~/py3-venv-pgadmin/bin
source activateMake sure to use the right pip, especially if using pyenv with shims.
Reference your download location or use the url if possible
If you need to download the whl
wget https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v3.6/pip/pgadmin4-3.6-py2.py3-none-any.whlInstall from local file
~/py3-venv-pgadmin/bin/pip3.6 install pgadmin4-3.6-py2.py3-none-any.whlInstall from url
~/py3-venv-pgadmin/bin/pip3.6 install https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v3.6/pip/pgadmin4-3.6-py2.py3-none-any.whlcd ~/py3-venv-pgadmin/lib/python3.6/site-packages/pgadmin4
touch config_local.py
vi config_local.pyconfig_local.py
import os
SERVER_MODE = False
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')~/py3-venv-pgadmin/bin/python ~/py3-venv-pgadmin/lib/python3.6/site-packages/pgadmin4/setup.py~/py3-venv-pgadmin/bin/python ~/py3-venv-pgadmin/lib/python3.6/site-packages/pgadmin4/pgAdmin4.py#!/usr/bin/env bash
cd ~/py3-venv-pgadmin/bin
source activate
~/py3-venv-pgadmin/bin/python ~/py3-venv-pgadmin/lib/python3.5/site-packages/pgadmin4/pgAdmin4.py- ~/.zshrc - for zsh
- ~/.bashrc - for bash
alias pgadmin4='~/py3-venv-pgadmin/pgadmin4.sh'- zsh
source ~/.zshrc- bash
source ~/.bashrcpgadmin4
source ~/.zshrc
is giving error : bash: source: /home/nitish/: is a directory