stylegan2-pytorch icon indicating copy to clipboard operation
stylegan2-pytorch copied to clipboard

Windows 10: conda install command doesn't work

Open eddex opened this issue 3 years ago • 3 comments

I tried the command suggested in the readme:

> conda install pytorch torchvision -c python
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

Current channels:

  - https://conda.anaconda.org/python/win-64
  - https://conda.anaconda.org/python/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.

Following the advice from the error message, I searched for the package on anaconda.org: https://anaconda.org/pytorch/torchvision

Using the command suggested by anaconda.org solved the problem:

> conda install -c pytorch torchvision

eddex avatar Oct 20 '20 16:10 eddex

Try:

conda install pytorch torchvision cudatoolkit=10.2 -c pytorch

TKassis avatar Oct 21 '20 16:10 TKassis

Before that make sure conda is up to date by running:

conda update conda

TKassis avatar Oct 21 '20 16:10 TKassis

If you're using Anaconda, open your Anaconda Prompt as administrator. Then, visit https://pytorch.org/get-started/locally/ to get the appropriate conda install command for your system. Run this command from the Anaconda Prompt and it should work.

colbyford avatar Jan 02 '21 21:01 colbyford