ver.2 PyGreSQL错误:from_pg import*importorror:DLL加载失败:找不到指定的模块

2024-05-15 13:48:22 发布

您现在位置:Python中文网/ 问答频道 /正文

我有和刚才讨论过的问题一样的问题,但是我没有资格评论答案,所以我开始了新的问题。

我的路径是libpq.dll(C:\ PostgreSql\lib),但它不能解决这个问题。

使用Python2.7.9 32位,PostgreSQL 8.4,Win 8

Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
    import pg
  File "C:\Python27\lib\site-packages\pg.py", line 21, in <module>
from _pg import *
ImportError: DLL load failed: The specified module could not be found.

Tags: 答案inimport路径postgresqllibline评论