赞
踩
1.下载opencv4.0.1及contribute模块
https://github.com/opencv/opencv/releases/tag/4.0.1
https://github.com/opencv/opencv_contrib/releases/tag/4.0.1
2.更换国内源 //不更换也可以
使用 ubuntu 原生源下载速度,可替换为国内源,提升下载速度
备份 ubuntu 原生源
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
使用gedit编辑sources.list文件
sudo gedit /etc/apt/sources.list
将sources.list文件中的内容替换为以下内容,更换为阿里源
- deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties
-
- deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted
-
- deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe #Added by software-properties
-
- deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted
-
- deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted mu
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。