pgadmin4 - New install not working
<p>I downloaded the <code>postgresql-9.6.0-1-linux-x64.run</code> package and ran through the installer on <strong>ubuntu 16.04</strong>. <strong>Postgres</strong> is working fine. I am trying to use the <strong>pgadmin4</strong> package that was included with this installer. I created a site in Apache per the instructions. </p>

<p>This is the error I am getting in the server.log file in Apache. Not sure how to fix this.</p>

<pre><code>   Traceback (most recent call last):

File "/opt/PostgreSQL/9.6/pgAdmin4/web/pgAdmin4.wsgi", line 8, in &lt;module&gt;
     from pgAdmin4 import app as application

File "/opt/PostgreSQL/9.6/pgAdmin4/web/pgAdmin4.py", line 24, in &lt;module&gt;
     from pgadmin import create_app

File "/opt/PostgreSQL/9.6/pgAdmin4/web/pgadmin/__init__.py", line 18, in &lt;module&gt;

  from flask_babel import Babel, gettext

ImportError: No module named flask_babel
</code></pre>

<p>This error message shows that your environment is missing a package called <code>flask_babel</code>. To install it, switch to the virtualenv your webserver uses and install it with this command:</p>

<pre><code>pip install flask_babel
</code></pre>

<p>If you are not using any virtual environment for your python scripts, you have to prepend <code>sudo</code> to the command. But you should really <a href="http://stackoverflow.com/questions/5844869/comprehensive-beginners-virtualenv-tutorial">consider using a virtualenv</a> for your projects.</p>

python postgresql pgadmin-4