title: Cannot import psycopg2 from python3 on fedora 27
body: <p>I've just upgraded to Fedora 27, and have been unable to get psycopg2 working.  </p>
  
  <p>I'd very much appreciate any help anyone can provide.  </p>
  
  <p>As a simple test case, I've been executing<br>
  <code>&gt;&gt;&gt; import psycopg2</code><br>
  at the interactive shell. This works fine for Python 2.7, but fails for Python 3.x.</p>
  
  <p>With <strong>Python 3.4 and 3.5</strong>, I get the message:  </p>
  
  <blockquote>
    <p>Traceback (most recent call last):
      File "", line 1, in 
    ImportError: No module named 'psycopg2'</p>
  </blockquote>
  
  <p>With <strong>Python 3.6</strong>, I see:  </p>
  
  <blockquote>
    <p>Traceback (most recent call last):
      File "", line 1, in 
      File "/home/jazcap53/.local/lib/python3.6/site-packages/psycopg2/<strong>init</strong>.py", line 50, in 
        from psycopg2._psycopg import (                     # noqa
    ImportError: /home/jazcap53/.local/lib/python3.6/site-packages/psycopg2/.libs/libresolv-2-c4c53def.5.so: symbol __res_maybe_init, version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference</p>
  </blockquote>
  
  <p>I installed Fedora 27 from DVD-ROM. I find psycopg2 packages located at
  <code>/usr/lib64/python2.7/site-packages</code><br>
  and<br>
  <code>/home/jazcap53/.local/lib/python3.6/site-packages</code></p>
  
  <p>My Python packages were all either included with Fedora, or installed via <code>dnf</code>. They are:  </p>
  
  <pre><code>python3-3.6.3-2.fc27.x86_64
  python35-3.5.4-1.fc27.x86_64
  python34-3.4.7-1.fc27.x86_64
  python2-2.7.14-2.fc27.x86_64
  </code></pre>
  
  <p>Some packages I have installed that may be relevant are:  </p>
  
  <pre><code>python2-devel-2.7.14-2.fc27.x86_64
  python3-devel-3.6.3-2.fc27.x86_64
  libpqxx-1:5.0.1-2.f27.x86_64
  libpqxx-devel-1:5.0.1-2.f27.x86_64
  libgcc-7.2.1-2.fc27.x86_64
  postgresql-devel-9.6.6-1.fc27.x86_64
  </code></pre>
  
  <p>P.S.: If I'm asking this question in the wrong place, please direct me to the right place.</p>
  
  <p><strong>Edit:</strong>
  I noticed that:</p>
  
  <p><code>/usr/lib64/python2.7/site-packages/</code><br>
  contains subdirectories<br>
  <code>psycopg2</code> and<br>
  <code>psycopg2-2.7.3-py2.7.egg-info</code></p>
  
  <p>but</p>
  
  <p><code>/usr/lib64/python3.4/site-packages/</code> and<br>
  <code>/usr/lib64/python3.5/site-packages/</code><br>
  contain nothing related to <code>psycopg2</code></p>
  
  <p>and</p>
  
  <p><code>/usr/lib64/python3.6/site-packages/</code><br>
  contains subdirectory<br>
  <code>psycopg2-2.7.3-py3.6.egg-info</code><br>
  but not <code>psycopg2</code> itself</p>