报错:

(pytorch) devil@Monster:~$ huggingface-cli login

    _|    _|  _|    _|    _|_|_|    _|_|_|  _|_|_|  _|      _|    _|_|_|      _|_|_|_|    _|_|      _|_|_|  _|_|_|_|
    _|    _|  _|    _|  _|        _|          _|    _|_|    _|  _|            _|        _|    _|  _|        _|
    _|_|_|_|  _|    _|  _|  _|_|  _|  _|_|    _|    _|  _|  _|  _|  _|_|      _|_|_|    _|_|_|_|  _|        _|_|_|
    _|    _|  _|    _|  _|    _|  _|    _|    _|    _|    _|_|  _|    _|      _|        _|    _|  _|        _|
    _|    _|    _|_|      _|_|_|    _|_|_|  _|_|_|  _|      _|    _|_|_|      _|        _|    _|    _|_|_|  _|_|_|_|

    To login, `huggingface_hub` requires a token generated from https://huggingface.co/settings/tokens .
Token: 
Add token as git credential? (Y/n) Y
Traceback (most recent call last):
  File "/home/devil/anaconda3/envs/pytorch/lib/python3.10/site-packages/socks.py", line 787, in connect
    super(socksocket, self).connect(proxy_addr)
OSError: [Errno 113] No route to host

 

 

检查后发现是网络代理的IP地址填写错误,在终端中的错误输入:

export all_proxy=socks5://192.168.1.100:1080/

export ALL_PROXY=socks5://192.168.1.100:1080/

 

 

改为:

export all_proxy=socks5://192.168.1.110:1080/

export ALL_PROXY=socks5://192.168.1.110:1080/

 

 

=======================