import psycopg2
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.4/site-packages/psycopg2-2.4.1-py2.4-linux-x86_64.egg/psycopg2/__init__.py", line 71, in ?
    from psycopg2._psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID
ImportError: libpq.so.5: cannot open shared object file: No such file or directory

solution:

cd /etc/ld.so.conf.d
echo "/usr/local/pgsql/lib" >>pgsql.conf
ldconfig

ImportError: libpq.so.5: cannot open shared object file: No such file or directory相关推荐

  1. ImportError: libopenblas.so.0: cannot open shared object file

    ImportError: libopenblas.so.0: cannot open shared object file 解决: sudo apt-get install libopenblas-d ...

  2. python opencv ImportError: libGL.so.1: cannot open shared object file: No such file or directory

    在redhat安装好opencv后,报错:ImportError: libGL.so.1: cannot open shared object file: No such file or direct ...

  3. import cv2时ImportError: libjasper.so.1: cannot open shared object file: No such file or directory

    问题描述: 如题,导入cv2时出现ImportError: libjasper.so.1: cannot open shared object file: No such file or direct ...

  4. 【libcudnn】ImportError: libcudnn.so.7: cannot open shared object file: No such file or directory

    最近在服务器上安装tensorflow-gpu,安装完成后,在使用tensorflow的时候报错" ImportError: libcudnn.so.7: cannot open share ...

  5. ImportError: libSM.so.6: cannot open shared object file: No such file or dir

    ImportError: libSM.so.6: cannot open shared object file: No such file or dir 出现错误: ImportError: libS ...

  6. ImportError: libjpeg.so.62: cannot open shared object file: No such file or directory

    在Python 中使用dlib ,import dlib 时 报如下错误: Traceback (most recent call last):   File "<stdin>& ...

  7. 解决方案大全ImportError: libta_lib.so.0: cannot open shared object file: No such file or directory

    原始问题: >>> import talib Traceback (most recent call last):File "<stdin>", li ...

  8. ImportError: libgdal.so.20: cannot open shared object file: No such file or directory

    问题描述 执行from osgeo import ogr命令时报错"ImportError: libgdal.so.20: cannot open shared object file: N ...

  9. [h5py] 解决ImportError: libhdf5.so.103: cannot open shared object file: No such file or directory

    安装和运行h5py遇到的问题和解决办法. 安装h5py后,导入h5py库出现如下报错信息.后来发现,这个问题也会出现在安装h5py库时. # python3 Python 3.7.1 | packag ...

最新文章

  1. php instr函数,oracle的instr函数用法
  2. 【书评:Oracle查询优化改写】第14章 结尾章
  3. 《中国基础研究竞争力报告2020》发布,6图表速览报告核心结论
  4. 输出字符数字空格个数
  5. 关于table和ul/ol还有span.
  6. .net core引用错误的Entity Framework而导致不能正常迁移数据的解决办法
  7. sendmail启动报错
  8. django-oscar的默认地点打开后总是united kingdom
  9. 81. 搜索旋转排序数组 II---Leecode----java
  10. WindowsMobile应该如何发展?(未完待续)
  11. X Window Bitmaps And Pixmaps
  12. 研华外触发实验PCI1714板卡安装事项
  13. electron 渲染进程调用主进程_万物皆可快速上手之Electron(第一弹)
  14. 服务端程序的keeplive
  15. 网易云音乐显示服务器发生错误,网易云音乐加载失败怎么回事 网易云音乐出现加载失败的有效解决方法...
  16. 球体积公式推导(积分)
  17. 给图片加边框源代码c语言,给图片加框的代码及效果
  18. TypeScript学习总结
  19. pandas将df赋值到另一个df_Python/Pandas:如果匹配的話,將一個df的值添加到另一個df的行的末尾...
  20. 如何在Web of Science上免费下载文献

热门文章

  1. poj1969---找规律
  2. (转载)深入理解Linux中内存管理---分段与分页简介
  3. Quartz任务调度
  4. 修改SQL server数据库中的逻辑文件名
  5. ARM(IMX6U)裸机主频和时钟
  6. 智能家居 (5) —— LD3320语音模块二次开发
  7. python处理excel的方法有哪些_python简单处理excel方法
  8. 云服务器有i5的性能吗,i5云服务器
  9. 计算机基础:信息安全相关知识笔记
  10. 后端:Spring IOC 知识点总结,写得太好了!