title: Trying to install psycopg2 on macosx 10.14.6 with python 2.7
body: <p>I did 
    wget bootstrap.pypa.io/ez_setup.py --no-check-certificate
    sudo python ez_setup.py
    sudo -H pip install psycopg2
  and getting following errors.</p>
  
  <pre><code>sudo -H pip install psycopg2
  </code></pre>
  
  <pre><code>DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
  
  Collecting psycopg2
    Using cached psycopg2-2.8.5.tar.gz (380 kB)
  Building wheels for collected packages: psycopg2
    Building wheel for psycopg2 (setup.py) ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-install-cnW8Dg/psycopg2/setup.py'"'"'; __file__='"'"'/private/tmp/pip-install-cnW8Dg/psycopg2/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/tmp/pip-wheel-rthf3D
         cwd: /private/tmp/pip-install-cnW8Dg/psycopg2/
    Complete output (279 lines):
    /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'project_urls'
      warnings.warn(msg)
    /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'python_requires'
      warnings.warn(msg)
    running bdist_wheel
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.14-intel-2.7
    creating build/lib.macosx-10.14-intel-2.7/psycopg2
    copying lib/_json.py -&gt; build/lib.macosx-10.14-intel-2.7/psycopg2
    copying lib/extras.py -&gt; build/lib.macosx-10.14-intel-2.7/psycopg2
  </code></pre>
  
  <p>How can I resolve it ?</p>