ubuntu 安装OpenCV教程可以参考:http://www.linuxdiyf.com/linux/15856.html
ubuntu 安装opencv的时候,终端运行命令:
sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev
出现错误:
错误:1 http://cn.archive.ubuntu.com/ubuntu xenial/universe amd64 libtbb-dev amd64 4.4~20151115-0ubuntu3
404 Not Found [IP: 115.28.122.210 80]
N: 忽略‘50unattended-upgrades.ucf-dist’(于目录‘/etc/apt/apt.conf.d/’),鉴于它的文件扩展名无效
E: 下载 http://cn.archive.ubuntu.com/ubuntu/pool/universe/t/tbb/libtbb-dev_4.4~20151115-0ubuntu3_amd64.deb 404 Not Found [IP: 115.28.122.210 80] 失败
解决方法是删除目录/etc/apt/apt.conf.d/下的文件50unattended-upgrades.ucf-dist,即在终端运行命令:
sudo rm /etc/apt/apt.conf.d/50unattended-upgrades.ucf-dist
之后重新运行:
sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev
安装成功.