在ubuntu下载opencv的时候出了点问题
# sudo apt-get install libopencv-dev
以下解决方法参考了这篇博客https://blog.csdn.net/he_wolf/article/details/37793201
sudo vi /etc/gai.conf
找到
#
# For sites which prefer IPv4 connections change the last line to
#
# precedence ::ffff:0:0/96 100
然后取消最后一行的注释得到:
#
# For sites which prefer IPv4 connections change the last line to
#
precedence ::ffff:0:0/96 100
这样IPV6依然是打开的,但是会优先使用IPV4,这样问题就解决啦!
网友评论