Linux下安装PgAdmin遇到的问题:
sudo pip install ./pgadmin4-4.23-py3-none-any.whl --安装命令
—执行sudo没有权限的问题:
报错:postgres 不在 sudoers 文件中。此事将被报告。
vi /etc/sudoers
添加如下内容:
postgres ALL=(ALL:ALL) ALL
再次执行安装命令:
[postgres@localhost ~]$ sudo install ./pgadmin4-4.23-py3-none-any.whl
[sudo] postgres 的密码:
install: 在"./pgadmin4-4.23-py3-none-any.whl" 后缺少了要操作的目标文件
Try ‘install --help’ for more information.
[postgres@localhost ~]$ sudo pip install ./pgadmin4-4.23-py3-none-any.whl
pgadmin4-4.23-py3-none-any.whl is not a supported wheel on this platform.
You are using pip version 8.0.2, however version 20.3.3 is available.
You should consider upgrading via the ‘pip install --upgrade pip’ command.
执行出错,提示需要升级pip版本
[postgres@localhost ~]$ pip install --u