在给ubuntu安装python opencv库时一直报错,说部分站点无法访问到。在网上查了很多方法都没有解决。最后修改sourses.list文件解决了问题
step1
找到sourses.list文件

在虚拟机下的etc/apt目录中
step2
找到国内的镜像资源
也可以在清华大学的镜像网站上找到
以下是18.04版本的
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bion


最低0.47元/天 解锁文章

被折叠的 条评论
为什么被折叠?



