【发布时间】:2016-01-06 21:36:41
【问题描述】:
我正在使用 Postgres 和 Pandas,但无法连接两者。 我使用 SQLAlchemy 创建了 enginestr,如下所示
from sqlalchemy import create_engine
engine = create_engine('postgresql://postgres:password@localhost:5432/bilal')
但是,当我运行该语句时,我收到以下错误
ImportError : No module names 'psycopg2'
我已尝试安装该模块,但没有任何运气。是因为我使用的是 32 位 Windows 机器吗?
谢谢,
比拉尔
【问题讨论】:
-
您确定错误来自您发布的那两行,而不是来自您引用
psycopg2的地方吗? -
我没有成功安装 psycopg2
-
那你应该问“如何在 Windows 32bit 上安装 psycopg2?”
标签: python postgresql python-2.7 psycopg2 python-2.x