1. 问题现象

在使用 ffmpeg 报错误如下:

ffmpeg: error while loading shared libraries: libopencv_core.so.2.4:
cannot open shared object file: No such file or directory

按照网上说的方法发现,在 /usr/local/lib 目录下并没有 libopencv_ 开头

wohu@ubuntu:/usr/local/lib$ ls
libcublas.so.8.0  libcudnn.so.6     python2.7
libcudart.so.8.0  libcurand.so.8.0  python3.5

2. 解决方法

使用 apt-get 命令安装 python-opencv

sudo apt-get install python-opencv

出现依赖错误:

The following packages have unmet dependencies:python-opencv : Depends: libopencv-photo2.4v5 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

换一种方法使用 aptitude 安装,问题得以解决:

sudo aptitude install python-opencv

libopencv_core.so.2.4: cannot open shared object file: Depends: libopencv-photo2.4v5相关推荐

  1. libgstreamer-1.0.so.0: cannot open shared object file: No such file or directory

    1. 问题现象 error while loading shared libraries: libgstreamer-1.0.so.0: cannot open shared object file: ...

  2. OSError: libcudart.so.8.0: cannot open shared object file: No such file or directory 解决方法

    OSError: libcudart.so.8.0: cannot open shared object file: No such file or directory 解决方法 检查cuda8是否安 ...

  3. 报错解决:cp: error while loading shared libraries: libc.so.6: cannot open shared object file: No such fi

    我的个人博客:zhang0peter的个人博客 先说一下为什么会发生这个错误,我看这篇博客:分享Centos6.5升级glibc过程 ,里面提到了如下命令: $ rm -rf /lib64/libc. ...

  4. 调用torchtext报错OSError: libtorch_cpu.so: cannot open shared object file: No such file or directory

    环境 torch版本1.4.0 报错 报错信息如题.调用torchtext报错 OSError: libtorch_cpu.so: cannot open shared object file: No ...

  5. tensorflow-gpu版本出现libcublas.so.8.0:cannot open shared object file

    文章主要参考以下博客https://www.aliyun.com/zixun/wenji/1289957.html 在利用GPU加速tensorflow时,出现了libcublas.so.8.0:ca ...

  6. libpython3.7m.so.1.0: cannot open shared object file: No such file or directory

    安装完python3.7.5之后,pip3.7.5 install psutil --user 报错: libpython3.7m.so.1.0: cannot open shared object ...

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

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

  8. libcublas.so: cannot open shared object file

    libcublas.so.9.1: cannot open shared object file ok: sudo ldconfig /usr/local/cuda-9.1/lib64 https:/ ...

  9. ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory

    ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory 安装cuda9.1 安 ...

最新文章

  1. 中服公司企业信息化的ERP系统选择
  2. java web项目调用rest接口404
  3. 积微论坛报告视频+PPT:用微生物组时序数据重现生物膜装配动态过程
  4. C语言中字符型和浮点型能否相加,C语言中数据结构的基本类型(整型、浮点型和字符型)...
  5. 2560x1600分辨率高吗_做设计还弄不清分辨率和像素之间的关系,来了解下他们是怎么换算...
  6. 基本数据类型、包装类、String三者之间的相互转换
  7. [react-router] 请你说说react的路由是什么?
  8. 架构设计(3)---基于Nginx和Zookeeper实现Dubbo的分布式服务
  9. python django+bootstrap4+mysql智慧交通系统构建
  10. IT必须掌握的面试大全技巧教你怎么回答
  11. tfs 2013 access deny
  12. c web mysql数据库_C语言操作MySQL数据库
  13. QT初探(QT+VS2010)
  14. 串行通信协议 CAN 和 LIN
  15. AutoHotKey完成ass字幕文件字幕偏移时间修改
  16. 中国顶级富豪沉浮录:财富常青树之谜与大败局规律
  17. 编写一个函数模板,实现两个对象大小的比较,并按照需求返回较大者或较小者。
  18. ubuntu 16.04 单用户____修改忘记密码
  19. 总结知识,提高认知--牛腩总结
  20. SecureCRT 注册机使用方法

热门文章

  1. RabbitMQ 入门系列(3)— 生产者消费者 Python 代码实现
  2. centos7下selinux永久关闭
  3. pyspark汇总小结
  4. python pandas 如何找到NaN、缺失值或者某些元素的索引名称以及位置,np.where的使用
  5. pytorchviz visdom 可视化 pytorch
  6. tensorflow学习笔记(四十五):sess.run(tf.global_variables_initializer()) 做了什么?
  7. 终端(terminal)、tty、shell、控制台(console)、bash之间的区别与联系
  8. Lidar激光雷达市场
  9. 深度学习数据特征提取:ICCV2019论文解析
  10. Docker核心技术之数据管理