I was installing psycopg2 on my OS X Mavericks and on importing it from within a virtual env, I kept getting an error:

In [1]: import psycopg2
ImportError                               Traceback (most recent call last)
<ipython-input-1-bd284aa2cf56> in <module>()
----> 1 import psycopg2

/Users/thinrhino/PyVM/ht/lib/python2.7/site-packages/psycopg2/__init__.py in <module>()
     48 # Import the DBAPI-2.0 stuff into top-level module.
---> 50 from psycopg2._psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID
     52 from psycopg2._psycopg import Binary, Date, Time, Timestamp

ImportError: dlopen(/Users/thinrhino/PyVM/ht/lib/python2.7/site-packages/psycopg2/_psycopg.so, 2): Library not loaded: @loader_path/../lib/libssl.1.0.0.dylib
  Referenced from: /Users/thinrhino/PyVM/ht/lib/python2.7/site-packages/psycopg2/_psycopg.so
  Reason: image not found

After spending some time searching for a solution came across this post on stackoverflow

Taking que from there did:

$ sudo ln -s /Applications/Postgres.app/Contents/MacOS/lib/libssl.1.0.0.dylib /usr/lib
$ sudo ln -s /Applications/Postgres.app/Contents/MacOS/lib/libcrypto.1.0.0.dylib /usr/lib

Which essentially meant, I needed PostgreSQL installed on my mac!