Unable to install psycopg2 (pip install psycopg2)

Rakesh Kumar picture Rakesh Kumar · Apr 13, 2018 · Viewed 75.7k times · Source

I'm using MAC and python version 2.7.14

Collecting psycopg2
  Could not fetch URL https://pypi.python.org/simple/psycopg2/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:661) - skipping
  Could not find a version that satisfies the requirement psycopg2 (from versions: )
No matching distribution found for psycopg2

Answer

ryche picture ryche · Apr 13, 2018

Try this:

pip install psycopg2-binary