libopencv_core.so.2.4: cannot open shared object file: Depends: libopencv-photo2.4v5
生活随笔
收集整理的這篇文章主要介紹了
libopencv_core.so.2.4: cannot open shared object file: Depends: libopencv-photo2.4v5
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
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的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 开健身房大概需要多少资金
- 下一篇: 求一个qq网名女生带雪字的