timoschick/dino

Requirements conflict

Closed this issue · 1 comments

Tried installing on 2 different env and one vm got the same error.
ERROR: Cannot install -r requirements.txt (line 11), -r requirements.txt (line 4) and torch==1.5.0 because these package versions have conflicting dependencies.

The conflict is caused by:
The user requested torch==1.5.0
torchvision 0.6.0 depends on torch==1.5.0
sentence-transformers 0.4.1 depends on torch>=1.6.0

That's strange, adding sentence-transformers didn't give me any error and if I run pip list, I get the following output:

[...]
sentence-transformers    0.4.1
[...]
torch                    1.5.0
torchvision              0.6.0+cu92
[...]

I think switching to torch >= 1.6.0 should be fine, but I'm not entirely sure, so I'll need some time to figure out whether everything still works as expected. In the meantime, I've removed sentence-transformers from the list of dependencies as it is only needed for this script, so installation should work for you now.

If you want to use the script that requires sentence-transformers, you can create a fresh enviroment just for that script, where you install the correct version of sentence-transformers and torch>=1.6.0.