ImportError while running cgi-bin on localhost - undefined symbol: lo_truncate64

試著忘記壹切 提交于 2019-12-10 23:18:19

问题


I'm trying to run a cgi-bin site on localhost. And I get the following error:

<type 'exceptions.ImportError'>: /usr/local/lib/python2.7/dist-packages/psycopg2/_psycopg.so: undefined symbol: lo_truncate64

My current PostgreSQL version is 9.4.5.

How can I fix the issue?


回答1:


The comment by Ali Nikneshan under now deleted answer saved me couple times already when I had this same problem. Not sure why it was deleted, but here I am reposting it in hopes it helps someone:

pip install -U --no-cache-dir --force psycopg2


来源:https://stackoverflow.com/questions/34177315/importerror-while-running-cgi-bin-on-localhost-undefined-symbol-lo-truncate64

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!