Dependency Conflict: femr==0.2.3 Requires torch>=2.1.2 but README Specifies torch==2.1.1
I'm encountering a dependency conflict while trying to install packages exactly as specified in the model's README. The README suggests installing the following:
pip install torch==2.1.1 femr==0.2.3 datasets==2.15.0 xformers transformers==4.35.2
However, when I run this, I get the following error:
ERROR: Cannot install femr==0.2.3 and torch==2.1.1 because these package versions have conflicting dependencies.
The conflict is caused by:
The user requested torch==2.1.1
femr 0.2.3 depends on torch>=2.1.2
So according to pip, femr==0.2.3 requires torch>=2.1.2, which contradicts the model's README instructions.
Question:
Is there a recommended workaround for this? Should I downgrade femr, or is it safe to force the install? Has anyone else run into this and found a compatible setup?
Any guidance would be appreciated. Thank you!
Hmm. That's a flaw in the README. It should be in sync with femr's requirements. I have updated the recommended command to
pip install torch==2.1.2 femr==0.2.3 datasets==2.15.0 xformers transformers==4.35.2
Oh shoot, I no longer have permission to update the README. Regardless, just use the newer version of torch specified in the femr pyproject.toml (torch==2.1.2)
No worries — thanks for the clarification! I’ll go ahead and use torch==2.1.2 as specified in the pyproject.toml. Appreciate the quick response!