opencv镜像源下载
时间: 2023-11-07 13:06:34 浏览: 141
你可以通过以下步骤在Ubuntu上下载OpenCV的镜像源:
1. 打开终端,输入以下命令以备份当前的软件源列表文件:
```
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
```
2. 打开软件源列表文件:
```
sudo gedit /etc/apt/sources.list
```
3. 在打开的文件中添加以下镜像源(根据自己所在地区选择):
- 清华大学:
```
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-updates main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-backports main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-security main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-security main restricted universe multiverse
```
- 中科大:
```
deb https://mirrors.ustc.edu.cn/ubuntu/ trusty main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ trusty main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ trusty-updates main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ trusty-updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ trusty-backports main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ trusty-backports main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ trusty-security main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ trusty-security main restricted universe multiverse
```
4. 更新软件源:
```
sudo apt-get update
```
5. 安装OpenCV:
```
sudo apt-get install libopencv-dev python-opencv
```
阅读全文