Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
587 views
in Technique[技术] by (71.8m points)

python - error while installing pgadmin4 in ubuntu 18.04

I'm trying to install pgadmin on ubuntu 18.04, but i'm getting following error. I also tried to rm and reinstall but it's getting same error.

$ sudo apt-get install pgadmin4 pgadmin4-apache2
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    pgadmin4-apache2 is already the newest version (4.25-1.pgdg18.04+1).
    pgadmin4 is already the newest version (4.29).
    0 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
    1 not fully installed or removed.
    After this operation, 0 B of additional disk space will be used.
    Do you want to continue? [Y/n] y
    Setting up pgadmin4-apache2 (4.25-1.pgdg18.04+1) ...
    apache2_invoke pgadmin4: already enabled
    Traceback (most recent call last):
      File "setup.py", line 18, in <module>
        from pgadmin.model import db, User, Version, ServerGroup, Server, 
      File "/usr/share/pgadmin4/web/pgadmin/__init__.py", line 19, in <module>
        from flask import Flask, abort, request, current_app, session, url_for
    ModuleNotFoundError: No module named 'flask'
    dpkg: error processing package pgadmin4-apache2 (--configure):
     installed pgadmin4-apache2 package post-installation script subprocess returned error exit status 1
    Errors were encountered while processing:
     pgadmin4-apache2
    E: Sub-process /usr/bin/dpkg returned an error code (1)

I tried,

sudo apt update --fix-missing
sudo apt install -f
sudo dpkg --configure -a

but its not working plz anyone help me with this


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...