博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
windows安装psycopg2问题解决方案
阅读量:7108 次
发布时间:2019-06-28

本文共 843 字,大约阅读时间需要 2 分钟。

在windows下使用

easy_installpsycopg2安装psycopg2时安装成功,但在python中import psycopg2时却提示如下错误:

from psycopg2._psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID

ImportError: DLL load failed: 找不到指定的模块。

为何??

ImportError: DLL load failed: The specified module could not be found.the file _psycopg.pyd is a dll. For its relatively small size it isprobably dynamically linked to the libpq.dll. I think the systemeither fails to find libpq.dll or some of the other dependencies (theyare listed in the setup.py).
I suggest you to use a tool to check its dll dependencies (maybe could be ok) and see if there isanything missing. If libpq.dll is the missing one, try putting it in aPATH directory or in the psycopg2 package directory.
具体解决方案如下:
查找libpq.dll,将其copy到psycopg2的包中,或者放置在系统PATH下即可

转载于:https://www.cnblogs.com/Jerryshome/archive/2011/06/28/2092410.html

你可能感兴趣的文章
Ambari修改主页面方法
查看>>
SolrJ总结
查看>>
CSS选择器的权重与优先规则
查看>>
jquery序列化form表单使用ajax提交后处理返回的json数据
查看>>
iOS设计模式 - 模板
查看>>
VSS Plugin配置FAQ(翻译)[转]
查看>>
javaSE之Object及hashcode等相关知识
查看>>
js 判断是否选中
查看>>
svn提交时强制注释
查看>>
Callable 获取线程返回值
查看>>
ecshop 活动-》红包
查看>>
linux网络编程学习笔记之二 -----错误异常处理和各种碎碎(更新中)
查看>>
js中的string.format函数代码
查看>>
Too many levels of symbolic links 问题
查看>>
Sql Server来龙去脉系列 必须知道的权限控制基础篇
查看>>
[翻译] CSStickyHeaderFlowLayout
查看>>
MYSQL查询某字段中以逗号分隔的字符串的方法
查看>>
【剑指offer】面试题37:两个链表的第一个公共结点
查看>>
微信公众号支付之坑:调用支付jsapi缺少参数 timeStamp等错误解决方法
查看>>
APP切图标记PS的外挂神器-Assistor PS(转)
查看>>