欢迎您访问365答案网,请分享给你的朋友!
生活常识 学习资料

ConnectionError:Couldn‘treachhttps://raw.githubusercontent.com/huggingface/datasets/1.18.3/metric

时间:2023-05-23
ERROR:

代码中这一行的load_metric出错:

metric = load_metric("glue", args.task_name)

ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.18.3/metrics/glue/glue.py (ReadTimeout(ReadTimeoutError("HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Read timed out、(read timeout=100)")))


METHOD: 首先: pip install cryptography
pip install pyOpenSS
pip install certifi 然后: root账户下: sudo vim /etc/hosts 添加
199.232.28.133 raw.githubusercontent.com

Copyright © 2016-2020 www.365daan.com All Rights Reserved. 365答案网 版权所有 备案号:

部分内容来自互联网,版权归原作者所有,如有冒犯请联系我们,我们将在三个工作时内妥善处理。