[Bug]:由于中国防火墙,无法连接 huggingface.co

问题描述 :
OSError: We couldn't connect to 'https://huggingface.co' to load this file, couldn't find it in the cached files and it looks like youscan/ukr-roberta-base is not the path to a directory containing a file named config. Json.
Checkout your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/transformers/installation#offline-mode'.

或者出现:

ProxyError: (MaxRetryError ("HTTPSConnectionPool (host='huggingface. Co', port=443): Max retries exceeded with url: /youscan/ukr-roberta-base/resolve/main/tokenizer_config. Json (Caused by ProxyError ('Unable to connect to proxy', SSLError (SSLZeroReturnError (6, 'TLS/SSL connection has been closed (EOF) (_ssl. C:1135)'))))"), ' (Request ID: b 0902 a 55-fcb 4-47

D:\桌面\aa\.venv\Scripts\python.exe D:\桌面\aa\图形学.py Traceback (most recent call last): File "D:\桌面\aa\.venv\Lib\site-packages\urllib3\connection.py", line 198, in _new_conn sock = connection.create_connection( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\桌面\aa\.venv\Lib\site-packages\urllib3\util\connection.py", line 85, in create_connection raise err File "D:\桌面\aa\.venv\Lib\site-packages\urllib3\util\connection.py", line 73, in create_connection sock.connect(sa) TimeoutError: timed out The above exception was the direct cause of the following exception: Traceback (most recent call last): File "D:\桌面\aa\.venv\Lib\site-packages\urllib3\connectionpool.py", line 787, in urlopen response = self._make_request( ^^^^^^^^^^^^^^^^^^^ File "D:\桌面\aa\.venv\Lib\site-packages\urllib3\connectionpool.py", line 488, in _make_request raise new_e File "D:\桌面\aa\.venv\Lib\site-packages\urllib3\connectionpool.py", line 464, in _make_request self._validate_conn(conn) File "D:\桌面\aa\.venv\Lib\site-packages\urllib3\connectionpool.py", line 1093, in _validate_conn conn.connect() File "D:\桌面\aa\.venv\Lib\site-packages\urllib3\connection.py", line 704, in connect self.sock = sock = self._new_conn() ^^^^^^^^^^^^^^^^ File "D:\桌面\aa\.venv\Lib\site-packages\urllib3\connection.py", line 207, in _new_conn raise ConnectTimeoutError( urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0x000001A38B4537D0>, 'Connection to huggingface.co timed out. (connect timeout=10)') The above exception was the direct cause of the following exception: Traceback (most recent call last): File "D:\桌面\aa\.venv\Lib\site-packages\requests\adapters.py", line 667, in send resp = conn.urlopen( ^^^^^^^^^^^^^ File "D:\桌面\aa\.venv\Lib\site-packages\urllib3\connectionpool.py", line 841, in urlopen retries = retries.increment( ^^^^^^^^^^^^^^^^^^ File "D:\桌面
03-23
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

伪_装

您的支持,是我持续创作的光

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值