2
>>> import pg

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

I downloaded PyGreSQL 4.0 for Windows, and installed it into the \LIB\site-packages of my python directory. When I try to import pg.py, I get this error. :(

m00am
  • 5,910
  • 11
  • 53
  • 69
manwithafork
  • 21
  • 1
  • 2

2 Answers2

1

Looks like it's unable to find libpq.dll. Make sure that the directory which contains libpq.dll from your PostgreSQL installation is in your Windows path.

Andrew
  • 12,821
  • 2
  • 26
  • 18
0

Have you looked in the C:\EPD\lib\site-packages\ directory? Perhaps you did not install to the right site-packages directory?

Erik B
  • 40,889
  • 25
  • 119
  • 135