关于ping www.baidu.com不通的问题
首先你需要root权限
然后去修改网络解析配置:
sudo vim /etc/resolv.conf
在后面加上
nameserver 8.8.8.8 nameserver 8.8.4.4
保存后重启网络服务
sudo /etc/init.d/networking restart
如果在使用pip安装库的时候出现错误:
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))': /simple/torch/ WARNING: Retryi
普通用户登录修改pip config文件:
cd ~/.pip/ vim pip.conf
换源:
[global] index-url = https://mirrors.aliyun.com/pypi/simple/ [install] trusted-host=mirrors.aliyun.com
保存即可
标签:None,8.8,ping,报错,Linux,pip,com From: https://www.cnblogs.com/robotpaul/p/18409893