FeTS-AI / Challenge

The repo for the FeTS Challenge
https://www.synapse.org/#!Synapse:syn28546456
49 stars 29 forks source link

Installation issue : conflicting dependencies #181

Closed Linardos closed 2 years ago

Linardos commented 2 years ago

Hey, I'm following the instructions in https://github.com/FETS-AI/Challenge/tree/main/Task_1#getting-started

But at step pip install . I get this error:


INFO: pip is looking at multiple versions of nnunet to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of medpy to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of batchgenerators to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of fets to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of <Python from Requires-Python> to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of fets-challenge to determine which version is compatible with other requirements. This could take a while.
ERROR: Cannot install fets and fets-challenge because these package versions have conflicting dependencies.

The conflict is caused by:
    nnunet 1.6.6 depends on torch>=1.6.0a
    gandlf 0.0.14.dev0 depends on torch==1.8.2

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

Note that I installed pytorch using this command: pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu116

Geeks-Sid commented 2 years ago

Hi,

Could you specify the CUDA version you are trying to install?

I have been successfully able to install it with the following command.

pip3 install torch==1.8.2 torchvision==0.9.2 torchaudio==0.8.2 --extra-index-url https://download.pytorch.org/whl/lts/1.8/cu111

This should satisfy both requirements for nnunet and gandlf and should resolve the issue.

Linardos commented 2 years ago

This worked. Thanks!