Error running pip install -r requirements.txt
When running the command from the readme, after setting up the conda env and installing conda dependencies.
cd server
pip install -r requirements.txt
I get
Collecting diffusers
Cloning https://github.com/huggingface/diffusers.git (to revision 8c530fc2f6a76a2aefb6b285dce6df1675092ac6) to /tmp/pip-install-j1hjqorv/diffusers_702611dbc29d4299b8288e87af03d000
Running command git clone --filter=blob:none --quiet https://github.com/huggingface/diffusers.git /tmp/pip-install-j1hjqorv/diffusers_702611dbc29d4299b8288e87af03d000
Running command git rev-parse -q --verify 'sha^8c530fc2f6a76a2aefb6b285dce6df1675092ac6'
Running command git fetch -q https://github.com/huggingface/diffusers.git 8c530fc2f6a76a2aefb6b285dce6df1675092ac6
Running command git checkout -q 8c530fc2f6a76a2aefb6b285dce6df1675092ac6
Resolved https://github.com/huggingface/diffusers.git to commit 8c530fc2f6a76a2aefb6b285dce6df1675092ac6
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting transformers
Cloning https://github.com/huggingface/transformers (to revision c612628045822f909020f7eb6784c79700813eda) to /tmp/pip-install-j1hjqorv/transformers_a183166b986d4741b81f895dac6f217f
Running command git clone --filter=blob:none --quiet https://github.com/huggingface/transformers /tmp/pip-install-j1hjqorv/transformers_a183166b986d4741b81f895dac6f217f
Running command git rev-parse -q --verify 'sha^c612628045822f909020f7eb6784c79700813eda'
Running command git fetch -q https://github.com/huggingface/transformers c612628045822f909020f7eb6784c79700813eda
Running command git checkout -q c612628045822f909020f7eb6784c79700813eda
error: Your local changes to the following files would be overwritten by checkout:
docs/source/ko/tasks/translation.mdx
Please commit your changes or stash them before you switch branches.
Aborting
error: subprocess-exited-with-error
× git checkout -q c612628045822f909020f7eb6784c79700813eda did not run successfully.
│ exit code: 1
╰─> 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 checkout -q c612628045822f909020f7eb6784c79700813eda did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
This was working yesterday (on my Mac)
I am now on:
Linux gc2 5.4.0-146-generic #163-Ubuntu SMP Fri Mar 17 18:26:02 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Did something change? Any fix for this?
Best, M
I saw this error earlier today, and it went away after re-running. I guess YMMV.
Can you solve it? I met it too.
Any progress on this issue?
@Maddocent I know 2 months have passed since this but did you alter any files in the directory?
The error indicates that you made changes to some file that weren't committed, and the pip install would overwrite that.
Not the best solution by try saving that altered file somewhere else, delete it from your folder and running the command again.
pip install -r requirements.txt