-
Notifications
You must be signed in to change notification settings - Fork 43
Description
I am encountering a dependency conflict while trying to install dependencies from requirements.txt.
The issue arises due to the conflicting version requirements between torch and torchaudio:
I requested torch==2.3.0+cu121 in requirements.txt.
However, torchaudio 2.3.1+cu121 depends on torch==2.3.1, which creates a version conflict.
Here’s the error message that I receive:
INFO: pip is looking at multiple versions of torch to determine which version is compatible with other requirements. This could take a while.
ERROR: Cannot install -r requirements.txt (line 23) and torch==2.3.0+cu121 because these package versions have conflicting dependencies.
Steps to reproduce:
Create a virtual environment.
Run pip install -r requirements.txt.
Observe the dependency conflict between torch and torchaudio.
Expected behavior: The installation should complete without version conflicts between torch and torchaudio.
Environment:
torch==2.3.0+cu121
torchaudio==2.3.1+cu121
Could you please resolve this dependency conflict or advise on how to work around it?
Thank you!