stylegan2-pytorch
stylegan2-pytorch copied to clipboard
Windows 10: conda install command doesn't work
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
Try:
conda install pytorch torchvision cudatoolkit=10.2 -c pytorch
Before that make sure conda is up to date by running:
conda update conda
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.