我试过使用这个:http://stickpeople.com/projects/python/win-psycopg/
但没有运气。我甚至做了easy_install心理学2-2.6.1.(与网站上的64位链接同名)。
我正在使用Windows8.1和Python3.5。我不太熟悉我搜索过的一些主题,比如虚拟环境之类的.我通常只使用anaconda就行了。这是第一个没有发挥作用的模块。
from sqlalchemy import create_engine
import psycopg2
engine = create_engine('postgresql://postgres:xxxxxxx@localhost:xxxx/xxxxxxx')ImportError: DLL加载失败:找不到指定的模块。
发布于 2016-01-21 17:03:18
有时安装的二进制文件并不是最新的。
当发生这种情况时,解决方法是将PostgreSQL二进制路径(例如C:\Program Files\PostgreSQL\9.3\bin)添加到路径变量中。
如果您不知道如何在windows上添加路径变量,您可能需要这。
https://stackoverflow.com/questions/34910393
复制相似问题