安装psycopg2后,我无法正确导入

时间:2019-04-16 02:51:32

标签: python-3.x terminal psycopg2 importerror dlopen

当我尝试导入psycopg2时,发生以下错误。

  
    
      

导入psycopg2       追溯(最近一次通话):         文件“”,第1行,位于         在第50行中输入文件“ /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/psycopg2/init.py”           来自psycopg2._psycopg import(#noqa       ImportError:dlopen(/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/psycopg2/_psycopg.cpython-37m-darwin.so,2):库未加载:@ rpath / libssl .1.1.dylib         引用自:/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/psycopg2/_psycopg.cpython-37m-darwin.so         原因:找不到图片

    
  

1 个答案:

答案 0 :(得分:0)