在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

相關內容