Ubuntu 16.04-为什么我不能安装libtiff4-dev? [英] Ubuntu 16.04 - Why I cannot install libtiff4-dev?

查看:1743
本文介绍了Ubuntu 16.04-为什么我不能安装libtiff4-dev?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下教程,我正在尝试在Ubuntu 16.04上使用Python安装OpenCV 3.

Following this tutorial, I am trying to install the OpenCV 3 with Python on Ubuntu 16.04.

在输入$ 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

这是因为我使用的是Ubuntu的最新LTS版本(作者使用的是Ubuntu 14.04)吗?如果我只安装一个libtiff5-dev可以吗(我的意思是,这会影响从现在开始我将要构建的OpenCV操作)吗?

Is this because I am using the latest LTS release of Ubuntu (the author used Ubuntu 14.04)? Is it okay if I just install the libtiff5-dev one (I mean, will it effect the OpenCV operation that I will be building from now on)?

推荐答案

我在Ubuntu 15.10上遇到了同样的问题,因此,这并不是因为使用最新的LTS版本(Ubuntu 16.04).

I had the same issue on Ubuntu 15.10, So, it is not because of using latest LTS release (Ubuntu 16.04).

OpenCV 需要 libtiff-dev 软件包以支持TIFF图像,目前 libtiff5-dev 最新的可用软件包.

OpenCV requires libtiff-dev package to support TIFF images and libtiff5-dev is currently the latest available package.

所以,我认为最好安装libtiff5-dev:

So, I think it is best to install libtiff5-dev:

sudo apt-get install libtiff5-dev(用于64位系统)

sudo apt-get install libtiff5-dev:i386(对于32位系统)

这篇关于Ubuntu 16.04-为什么我不能安装libtiff4-dev?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆