I get this error:
C:\Users>conda install pytorch torchvision -c soumith
Fetching package metadata .............
PackageNotFoundError: Package missing in current win-64 channels:
- pytorch
I got conda install pytorch torchvision -c soumith
from Pytorch official website and I have OSX/conda/3.6/none for settings on Pytorch site(should be correct). I am new to conda, any tips how to solve this?
Update: From PyTorch 0.4, there is an official Anaconda channel with packages for Windows as well. You can install the latest pre-built (binary) version of PyTorch (GPU version by default) on windows using:
conda install -c pytorch pytorch
For CPU only version:
conda install -c pytorch pytorch-cpu
For specific version of CUDA say CUDA9.1:
conda install -c pytorch pytorch cuda91
Official instructions for windows are now available here
Old answer for previous versions (<0.4) of PyTorch on Windows:
It looks like you are on windows (win 64) and you are trying to install pytorch by choosing OSX because you don't have an option listed for win64 on pytorch site. (Correct me if that is not the case, I will revise my answer). -c soumith
will use soumith's channel which only has packages for Linux and OSX not for windows. That is why you got that error when you ran conda from a windows machine.
You can install pytorch on windows through conda using this command:
conda install -c peterjc123 pytorch
This will fetch the pytorch package using peterjc123's channel which has packages for Win64.
You can install the torchvision package using pip like this:
pip install torchvision
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With