安装Postgres.App后在python中出现问题

时间:2016-09-13 08:11:02

标签: python postgresql

当我尝试运行以前运行的python脚本时,我收到此错误。 我最近下载了Postgres.App,我认为这是导致它的原因。我删除了它,但我仍然得到同样的错误..

    import psycopg2 as pg
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/psycopg2/__init__.py", line 50, in <module>
    from psycopg2._psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/psycopg2/_psycopg.cpython-35m-darwin.so, 2): Library not loaded: /Applications/Postgres.app/Contents/Versions/9.4/lib/libssl.1.0.0.dylib
  Referenced from: /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/psycopg2/_psycopg.cpython-35m-darwin.so
  Reason: image not found

你知道是什么引起了这个问题吗?

0 个答案:

没有答案