Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在pip install -r requirements.txt时遇到subprocess-exited-with-error如何解决 #137

Open
yangzhenyu6 opened this issue Sep 14, 2023 · 2 comments

Comments

@yangzhenyu6
Copy link

(lawgpt) D:\lawchat\LaWGPT>pip install -r requirements.txt
Collecting git+https://github.com/huggingface/peft.git@e536616888d51b453ed354a6f1e243fecb02ea08 (from -r requirements.txt (line 8))
Cloning https://github.com/huggingface/peft.git (to revision e536616888d51b453ed354a6f1e243fecb02ea08) to c:\users\lenovo\appdata\local\temp\pip-req-build-h2fffsdq
Running command git clone --filter=blob:none --quiet https://github.com/huggingface/peft.git 'C:\Users\Lenovo\AppData\Local\Temp\pip-req-build-h2fffsdq'
fatal: unable to access 'https://github.com/huggingface/peft.git/': Failed to connect to github.com port 443 after 21081 ms: Couldn't connect to server
error: subprocess-exited-with-error

× git clone --filter=blob:none --quiet https://github.com/huggingface/peft.git 'C:\Users\Lenovo\AppData\Local\Temp\pip-req-build-h2fffsdq' 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 --filter=blob:none --quiet https://github.com/huggingface/peft.git 'C:\Users\Lenovo\AppData\Local\Temp\pip-req-build-h2fffsdq' 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.

@YoungZhao2001
Copy link

J@P D %RB68KZ~ F NJ`YHY
也遇到同样的问题了,请答主解惑,谢谢。

@YoungZhao2001
Copy link

解决了,把requirements.txt第八行.git后面@xxx部分删除
另外将网址改成GitHub的镜像站就行,是网络问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants