在使用 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
使用 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