安装requirements.txt失败

pip install -r requirements.txt
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting keras-contrib@ git+https://www.github.com/keras-team/keras-contrib.git@3fc5ef709e061416f4bc8a92ca3750c824b5d2b0
Cloning https://www.github.com/keras-team/keras-contrib.git (to revision 3fc5ef709e061416f4bc8a92ca3750c824b5d2b0) to c:\users\yangs\appdata\local\temp\pip-install-lmz2eveq\keras-contrib_c3d45f17d3224e6badb55e499c4fe6ec
Running command git clone --filter=blob:none --quiet https://www.github.com/keras-team/keras-contrib.git 'C:\Users\yangs\AppData\Local\Temp\pip-install-lmz2eveq\keras-contrib_c3d45f17d3224e6badb55e499c4fe6ec'
fatal: unable to access 'https://www.github.com/keras-team/keras-contrib.git/': OpenSSL SSL_connect: Connection was reset in connection to github.com:443
error: subprocess-exited-with-error

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

× git clone --filter=blob:none --quiet https://www.github.com/keras-team/keras-contrib.git 'C:\Users\yangs\AppData\Local\Temp\pip-install-lmz2eveq\keras-contrib_c3d45f17d3224e6badb55e499c4fe6ec' 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.

问题分析,你使用了国内源加速了,然后安装过程中却去github上下载安装包,出现报错的情况,推荐 Watt Toolkit 去Windows Store去下载安装 https://apps.microsoft.com/store/detail/watt-toolkit/9MTCFHS560NG?hl=zh-cn&gl=cn 然后在pip安装

Connection was reset
这种基本上都是网络不稳定,建议去找下访问的办法。