Roberto Fernandez
Roberto Fernandez

Reputation: 52

Error compile with python psycopg2

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?

Upvotes: 1

Views: 95

Answers (1)

Roberto Fernandez
Roberto Fernandez

Reputation: 52

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

Upvotes: 1

Related Questions