[Tutor] Challenges with psycopg2 on Python 3.2

Admire Mutsikiwa amutsikiwa at gmail.com
Fri Jan 6 07:55:01 EST 2017


I am running Python on Debian 7 Wheezy. I am having challenges with
psycopg2 on python 3.2. However, it is working well on python 2.7.  When I
do import psycopg2 on Python 2.7, the system will not complain.  However,
it screams on the Python3.2 prompt, it gives
>>>  import psycopg2
  File "<stdin>", line 1
    import psycopg2
    ^
IndentationError: unexpected indent

I am new to Python and wants to work with Python 3

Any pointers will be greatly appreciated.

Kind regards,

Admire


More information about the Tutor mailing list