Handsome_zhou 发表于 2022-2-13 20:04:32

加载githubusercontent.com/huggingface数据集报错

Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.18.3/datasets/glue/glue.py (ConnectionError(MaxRetryError("HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.18.3/datasets/glue/glue.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3661b2a00>: Failed to establish a new connection: Connection refused'))")))

解决办法:

查询githubusercontent.com的IP地址,通过url:https://ipaddress.com/website
有4个,试了一下最后一个可用。

进入hosts文件,最后一行加上185.199.111.133 raw.githubusercontent.com
保存退出后运行便可加载。

进入hosts: vi gedit /etc/hosts

编辑后重启网络服务:/etc/init.d/networking restart

tomok 发表于 2022-2-14 11:07:08

{:5_108:}
页: [1]
查看完整版本: 加载githubusercontent.com/huggingface数据集报错