Unknown SSL protocol error in connection to github.com:443

报错

 fatal: unable to access 'https://github.com/ibeltagy/transformers.git/': Unknown SSL protocol error in connection to github.com:443
  error: subprocess-exited-with-error

  × git clone --quiet https://github.com/ibeltagy/transformers.git 'C:\Users\LiuSh\AppData\Local\Temp\pip-install-_6pm_y49\transformers_b021575b11434df588be9ff5e3463475' did not run successfully.
  │ exit code: 128
  ╰─> See above for output.

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× git clone --quiet https://github.com/ibeltagy/transformers.git 'C:\Users\LiuSh\AppData\Local\Temp\pip-install-_6pm_y49\transformers_b021575b11434df588be9ff5e3463475' did not run successfully.
│ exit code: 128
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

安装requirements.txt报错,里面有git,如:

transformers @ git+http://github.com/ibeltagy/transformers.git@longformer_encoder_decoder#egg=transformers

解决

1.新开一个cmd,输入

git config http.sslVerify "false"

2.使用pip命令安装

pip install git+https://github.com/ibeltagy/transformers.git@longformer_encoder_decoder#egg=transformers

 
posted @ 2022-05-21 17:10  付玬熙  阅读(445)  评论(0编辑  收藏  举报