Luffy03 / Large-Scale-Medical

[CVPR 2024 Extension] 160K volumes (42M slices) datasets, new segmentation datasets, 31M-1.2B pre-trained models, various pre-training recipes, 50+ downstream tasks implementation
Apache License 2.0
100 stars 7 forks source link

The 'requirement.txt' is wrong for 'pip install' command #5

Open BoyOfChu opened 1 month ago

BoyOfChu commented 1 month ago

When I attempt to install packages using the command 'pip install -r requirements.txt' on a Linux system, the following error is displayed:

ERROR: Invalid requirement: 'absl-py=2.0.0=pypi_0': Expected end or semicolon (after name and no valid version specifier) absl-py=2.0.0=pypi_0 ^ (from line 6 of requirements.txt) Hint: = is not a valid operator. Did you mean == ?

Luffy03 commented 1 month ago

Oh, thanks for attaching! Yes, seems you need to use "==", sorry for that.

lin-tianyu commented 1 month ago

Hi @Luffy03, thanks for your amazing work, but the installation method provided is not working:

  1. I got the exact same error as @BoyOfChu when trying to use pip install -r requirements.txt to install the environment.
  2. The 1~3 lines of requirements.txt suggests us to use conda create --name <env> --file <this file> to install the environment, which is also not working.
  3. When I go back to pip install, and change absl-py=2.0.0=pypi_0 to absl-py==2.0.0=pypi_0 or absl-py=2.0.0==pypi_0, still got error.
  4. Only if I change absl-py=2.0.0=pypi_0 to absl-py==2.0.0 can I install this package.

So it seems that the requirements.txt is not suitable for pip install in the first place. And I don't think users would want to delete all the =pypi_0 manually.

As a result, could you please look into this and provide a working solution for installation? This would help a lot for us users to follow your amazing work. Thanks!

Best, Tianyu

Luffy03 commented 1 month ago

Thank you for your attention! I would revise this part as soon as possible.