title: How to install psycopg2 for python 2.7
body: <p>While isntaling binaryanalysis Iv got an error ImportError: No module named psycopg2 but I have installed it but its only avalible for python 3.5. How I can install it for python2.7 ?</p>
  
  <p>Python 3.5</p>
  
  <pre><code>$ python3.5
  Python 3.5.2 (default, Nov 23 2017, 16:37:01) 
  [GCC 5.4.0 20160609] on linux
  Type "help", "copyright", "credits" or "license" for more information.
  &gt;&gt;&gt; import psycopg2
  &gt;&gt;&gt; exit
  Use exit()
  </code></pre>
  
  <p>Python 2.7</p>
  
  <pre><code>$ python2.7
  Python 2.7.12 (default, Nov 20 2017, 18:23:56) 
  [GCC 5.4.0 20160609] on linux2
  Type "help", "copyright", "credits" or "license" for more information.
  &gt;&gt;&gt; import psycopg2
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  ImportError: No module named psycopg2
  &gt;&gt;&gt; 
  </code></pre>
  
  <p>Edit:</p>
  
  <pre><code>$ pip install psycopg2 
  Requirement already satisfied: psycopg2 in /usr/local/lib/python3.5/dist-packages
  </code></pre>