1

I installed psycopg2 following this answer but when I compile this code

import psycopg2
import pprint
import sys`

I get this error:

c:\code_python\tutorial>python main.py
Traceback (most recent call last):
   File "main.py", line 16, in <module>
import psycopg2
File "C:\Python27.10\lib\psycopg2\__init__.py", line 50, in <module>
from psycopg2._psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID
ImportError: DLL load failed: %1 no es una aplicaci¾n Win32 vßlida.

What is the problem with psycopg2?

2
  • Sorry but where is your codes ? Commented Jun 13, 2016 at 13:20
  • It is only import for verify Commented Jun 13, 2016 at 13:22

1 Answer 1

1

Sorry for my question, the problem is i try install psycopg2 x86, when i install python x64 for my computer. I download psycopg2 x64 and all fine

Not the answer you're looking for? Browse other questions tagged or ask your own question.