问题已解决
我知道这是一个常见的错误并且已经查看了一些解决方案,但到目前为止还没有成功。我正在尝试连接到数据库引擎,并且得到了“原因 - 未找到图像”。我试过了
import sqlalchemy as sa
from pandas.io import sql
# Connect to your database
northwind = sa.create_engine('database_here')
48 # Import the DBAPI-2.0 stuff into top-level module.
49
---> 50 from psycopg2._psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID
51
52 from psycopg2._psycopg import Binary, Date, Time, Timestamp
ImportError: dlopen(/Users/****/anaconda2/lib/python2.7/site-packages/psycopg2/_psycopg.so, 2): Library not loaded: libssl.1.0.0.dylib
Referenced from: /Users/*****/anaconda2/lib/python2.7/site-packages/psycopg2/_psycopg.so
Reason: image not found