title: Psycopg2 fails to install on python 3 with pip issuing a fatal error
body: <pre><code>$ yum install python3 postgresql python-devel libpqxx-devel
  Loaded plugins: langpacks, refresh-packagekit
  Package python3-3.3.2-8.fc20.x86_64 already installed and latest version
  Package postgresql-9.3.2-2.fc20.x86_64 already installed and latest version
  Package python-devel-2.7.5-9.fc20.x86_64 already installed and latest version
  Package 1:libpqxx-devel-3.2-0.5.fc20.x86_64 already installed and latest version
  Nothing to do
  </code></pre>
  
  <p>I am trying to install <a href="http://initd.org/psycopg/install/#installing-from-source-code" rel="nofollow">psycopg2</a> in my virtualenv to connect django with the postgresql database.</p>
  
  <p>In Fedora 19 and postgresql-9.2 the path to pg_config was: </p>
  
  <p><code>/usr/pgsql-9.2/bin</code></p>
  
  <p>In Fedora 20, this directory does not exist.</p>
  
  <p>However pg_config can be found in <code>/usr/bin/pg_config</code>.</p>
  
  <p>Trying to install psycopg2:</p>
  
  <pre><code> $ export PATH=$PATH:/usr/bin; pip install psycopg2
  Downloading/unpacking psycopg2
    Downloading psycopg2-2.5.2.tar.gz (685kB): 685kB downloaded
    Running setup.py egg_info for package psycopg2
  
  ... -compiling output here- ...
  
  gcc -pthread -Wno-unused-result -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.5.2 (dt dec pq3 ext)" -DPG_VERSION_HEX=0x090302 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -I/usr/include/python3.3m -I. -I/usr/include -I/usr/include/pgsql/server -c psycopg/psycopgmodule.c -o build/temp.linux-x86_64-3.3/psycopg/psycopgmodule.o -Wdeclaration-after-statement
  
  In file included from psycopg/psycopgmodule.c:27:0:
  
  ./psycopg/psycopg.h:30:20: fatal error: Python.h: No such file or directory
  
   #include &lt;Python.h&gt;
  
                      ^
  
  compilation terminated.
  
  error: command 'gcc' failed with exit status 1
  
  ----------------------------------------
  Cleaning up...
  Command /home/flyer/.virtualenvs/p3test/bin/python3 -c "import setuptools;__file__='/home/flyer/.virtualenvs/p3test/build/psycopg2/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-mrsky4-record/install-record.txt --single-version-externally-managed --install-headers /home/flyer/.virtualenvs/p3test/include/site/python3.3 failed with error code 1 in /home/flyer/.virtualenvs/p3test/build/psycopg2
  Storing complete log in /home/flyer/.pip/pip.log
  </code></pre>
  
  <p>I would appreciate your help.</p>