阿里云服务器urllib [Errno -2] Name or service not known

这篇博客介绍了如何在root用户下编辑/etc/resolv.conf文件,添加Google公共DNS服务器8.8.8.8,以优化系统域名解析速度和稳定性。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

root用户下

cd /etc/resolv.conf

添加

nameserver 8.8.8.8
(isaacgym) wang@DESKTOP-CLCKL8N:~/developer.nvidia.com/isaacgym/python$ pip install torch==1.8.1+cu111 -f https://download.pytorch.org/whl/torch_stable.html Looking in links: https://download.pytorch.org/whl/torch_stable.html WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f53bb1d05b0>: Failed to establish a new connection: [Errno -2] Name or service not known')': /whl/torch_stable.html WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f53bb1d08b0>: Failed to establish a new connection: [Errno -2] Name or service not known')': /whl/torch_stable.html WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f53bb1d0a60>: Failed to establish a new connection: [Errno -2] Name or service not known')': /whl/torch_stable.html WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f53bb1d0c10>: Failed to establish a new connection: [Errno -2] Name or service not known')': /whl/torch_stable.html WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f53bb1d0dc0>: Failed to establish a new connection: [Errno -2] Name or service not known')': /whl/torch_stable.html WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f53bb1ee370>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/torch/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f53bb1ee5b0>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/torch/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f53bb1ee760>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/torch/ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f53bb1ee910>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/torch/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f53bb1eeac0>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/torch/ ERROR: Could not find a version that satisfies the requirement torch==1.8.1+cu111 (from versions: none) ERROR: No matching distribution found for torch==1.8.1+cu111
最新发布
07-18
linux 下;离线安装python包报错 安装命令 /data1/iap/dingji/Python-3.6.5/python -m pip install /apps/summary_fz_province/tool/pyzipper-0.3.6-py2.py3-none-any.whlxlixian 报错信息 Processing ./pyzipper-0.3.6-py2.py3-none-any.whl Collecting pycryptodomex (from pyzipper==0.3.6) Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f3189fd4198>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/pycryptodomex/ Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f3189fd4518>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/pycryptodomex/ Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f3189fd40b8>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/pycryptodomex/ Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f3189fd4400>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/pycryptodomex/ Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f3189fd43c8>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/pycryptodomex/ Could not find a version that satisfies the requirement pycryptodomex (from pyzipper==0.3.6) (from versions: ) No matching distribution found for pycryptodomex (from
04-01
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值