Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

PackagesNotFoundError: torchvision-cpu==0.2.0 #105

Open
jmuff44xv opened this issue Feb 3, 2022 · 3 comments
Open

PackagesNotFoundError: torchvision-cpu==0.2.0 #105

jmuff44xv opened this issue Feb 3, 2022 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@jmuff44xv
Copy link

I try to follow your installation instructions: I download and install Miniconda3-py38_4.10.3-Windows-x86_64.exe (is this not correct?) and then I execute:

conda install pytorch-cpu=0.4.1 torchvision-cpu==0.2.0 cpuonly -c pytorch

as instructed. But I get the error message:

Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.

PackagesNotFoundError: The following packages are not available from current channels:

  - torchvision-cpu==0.2.0

Current channels:

  - https://conda.anaconda.org/pytorch/win-64
  - https://conda.anaconda.org/pytorch/noarch
  - https://repo.anaconda.com/pkgs/main/win-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/win-64
  - https://repo.anaconda.com/pkgs/r/noarch
  - https://repo.anaconda.com/pkgs/msys2/win-64
  - https://repo.anaconda.com/pkgs/msys2/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.
@jmuff44xv jmuff44xv added the bug Something isn't working label Feb 3, 2022
@AtomicNess123
Copy link

Same problem here.
PackagesNotFoundError: The following packages are not available from current channels:

  • torchvision-cpu==0.2.0
  • pytorch-cpu=0.4.1

Current channels:

@Artyrm
Copy link

Artyrm commented Oct 31, 2023

You can safely go with:

pytorch                   1.10.2
torchvision               0.11.3

The only problem you will have with outdated parameter in dataloader.py
And that you can fix with this replacement in line 97:

        -resized_img = img.resize(resizeDim, Image.ANTIALIAS) if (resizeDim != None) else img
        +resized_img = img.resize(resizeDim, Image.LANCZOS) if (resizeDim != None) else img

@tsh78c9jk9
Copy link

You can safely go with:

pytorch                   1.10.2
torchvision               0.11.3

The only problem you will have with outdated parameter in dataloader.py And that you can fix with this replacement in line 97:

        -resized_img = img.resize(resizeDim, Image.ANTIALIAS) if (resizeDim != None) else img
        +resized_img = img.resize(resizeDim, Image.LANCZOS) if (resizeDim != None) else img

many thanks!

I think the key is the fix in dataloader.py. I used pytorch==2.1.0, it's also ok.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants