【发布时间】:2016-05-19 03:27:50
【问题描述】:
按照this 教程,我正在尝试在 Ubuntu 16.04 上使用 Python 安装 OpenCV 3。
在输入$ sudo apt-get install libjpeg8-dev libtiff4-dev libjasper-dev libpng12-dev这一步
我收到了这条消息:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libtiff4-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
libtiff5-dev:i386 libtiff5-dev
E: Package 'libtiff4-dev' has no installation candidate
这是因为我使用的是最新的 LTS 版本的 Ubuntu(作者使用的是 Ubuntu 14.04)吗?如果我只安装 libtiff5-dev 可以吗(我的意思是,它会影响我将从现在开始构建的 OpenCV 操作)吗?
【问题讨论】:
-
我在 Ubuntu 15.10 上遇到了同样的问题,所以,这不是因为使用了最新的 LTS 版本(Ubuntu 16.04)。 libtiff4-dev 软件包可从 libtiff5-dev 获得。所以,我认为安装 libtiff5-dev 是可以的。
-
试过了。到目前为止效果很好。谢谢。
标签: python opencv ubuntu libtiff