Search code examples
pythonpython-2.7python-2.xpgadmin-4

pgadmin4 installation Centos 7


I'm trying to get pgadmin4 installed on my Centos 7.6 machine, and I followed the below tuto : https://computingforgeeks.com/how-to-install-pgadmin-on-centos-fedora/

However, when I run: ''' python /usr/lib/python2.7/site-packages/pgadmin4-web/setup.py '''

I get the following error:

Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/pgadmin4-web/setup.py", line 413, in setup_db() File "/usr/lib/python2.7/site-packages/pgadmin4-web/setup.py", line 347, in setup_db app = create_app() File "/usr/lib/python2.7/site-packages/pgadmin4-web/pgadmin/init.py", line 711, in create_app from flask_compress import Compress ImportError: No module named flask_compress

Any idea what I've missed ? Thanks in advance.


Solution

  • You need to install Flask-Compress:

    https://pypi.org/project/Flask-Compress/

    Run the following command in your terminal:

    pip install Flask-Compress