ver.2 PyGreSQL ERROR: from _pg import * ImportError: DLL load failed: The specified module could not be found

前端 未结 3 1610
一整个雨季
一整个雨季 2020-12-19 17:17

I have the same problem that was discussed here, but I haven\'t credit to comment an answer so I start new question.

I have in PATH way to libpq.dll (C:\\PostgreSql

3条回答
  •  天命终不由人
    2020-12-19 17:53

    I was also facing the same issue on Win 8. First time I had installed PostgreSQL in "C:\Program Files" and also set environment PATH to point to PostgreSQL folder. I was suspecting permission issue for "C:\Program Files" folder.

    I was able to fix this issue by following the steps as mentioned below.

    • Uninstalled PostgreSQL
    • Re-installed PostgreSQL in "C:\PostgreSQL" Note that I have not installed PostgreSQL into "C:\Program Files" folder this time
    • Set the environment PATH C:\PostgreSQL\9.4;C:\PostgreSQL\9.4\bin
    • Also ensure that _pg.pyd exist in C:\Python27\Lib\site-packages

提交回复
热议问题