PengBoXiangShang / torchsketch

TPAMI 2022
MIT License
185 stars 21 forks source link

No matching distribution found for torchvision==0.4.0 #6

Open nimaeon opened 1 year ago

nimaeon commented 1 year ago

I can't install torchsketch library cause of torchvision requested version is unavailable. can you update the project requirements?

ERROR: Could not find a version that satisfies the requirement torchvision==0.4.0 (from torchsketch) (from versions: 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.2.0, 0.2.1, 0.2.2, 0.2.2.post2, 0.2.2.post3, 0.8.2, 0.9.0, 0.9.1, 0.10.0, 0.10.1, 0.11.0, 0.11.1, 0.11.2, 0.11.3, 0.12.0, 0.13.0, 0.13.1, 0.14.0, 0.14.1, 0.15.0, 0.15.1) ERROR: No matching distribution found for torchvision==0.4.0

ATang0729 commented 7 months ago

@nimaeon When I use torch 2.0.1+cu118 as shown below, this problem also happened to me.

torch                        2.0.1+cu118
torchaudio                   2.0.2+cu118
torchvision                  0.15.2+cu118

However, nothing happened when I pip install torchsketch under torch v1.10 and python 3.7 environment. BUT this will lead to torch v1.2.0 being forced installed (shown in the block blow).

torch                          1.2.0
torchaudio                     0.10.0+cu113
torchnet                       0.0.4
torchsketch                    0.1.0
torchvision                    0.4.0

If you must use torch v2.x, use pip install torchsketch --no-deps to ignore the environment constrains maybe ok.