undefined symbol: PyUnicodeUCS2_Decode whilst trying to install psycopg2

前端 未结 4 1163
清歌不尽
清歌不尽 2020-12-18 09:15

I\'m getting an error whilst trying to install psycopg2 on ubuntu 9.10 64 bit.

The error is:

>>> import psycopg2
Traceback (most recent call         


        
4条回答
  •  暖寄归人
    2020-12-18 09:21

    In my case, using bash shell I had no issue and with csh faced this issue. Realized have multiple version of python installed. one defaulting in /usr/local/bin worked vs one in /bin exhibited the issue. Point being before you think you need to recompile with admin help check if you have any alternate version of python installed.

提交回复
热议问题