在ubuntu mate上安装opencv时出错

在ubuntu mate上安装opencv时出错

我正在关注http://www.pyimagesearch.com/2016/10/24/ubuntu-16-04-how-to-install-opencv/

用于在 Ubuntu Mate 16.04 上安装 Opencv

在步骤 2 中给出的步骤#2:下载 OpenCV 源代码,我的命令没有遇到任何问题

$ wget -O opencv.zip https://github.com/Itseez/opencv/archive/3.1.0.zip

但是当我尝试执行命令时

$ unzip opencv.zip

我收到以下错误

Archive:  opencv.zip
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of opencv.zip or
        opencv.zip.zip, and cannot find opencv.zip.ZIP, period.

结果

du -hsc opencv.zip

如下面所述

0   opencv.zip
0   total

的结果

ls -l

我的主目录如下

3.1.0.zip
3.1.0.zip.1
3.1.0.zip.2
Desktop
Documents
Downloads
Music
op
opencv-3.1.0
opencv_contrib.zip
opencv.zip
Pictures
Public
Templates
Videos
wget-log

当文件夹正在下载但没有从 du 命令获取的任何内容时,链接是否有问题。有什么替代方案吗?

答案1

尝试这个:

获取https://github.com/Itseez/opencv/archive/3.2.0.zip-O opencv-3.2.0.zip

解压opencv-3.2.0.zip

相关内容