Error in pip install torchvision on Windows 10

I tried to use:

pip install torchvision

but it didn't work for me. So, I googled this problem more carefully and found another solution:

pip install --no-deps torchvision

I hope it will be helpful.

Update: I want to add: "--no-deps" means that no dependencies packages will be downloaded.


The windows version of pytorch was never uploaded to PyPi for Windows because of the size limits. So when installing you need to use -f or --force-link to the PyTorch wheel:

pip install torch===1.5.0 torchvision===0.6.0 -f https://download.pytorch.org/whl/torch_stable.html


Fixed it by running the following

pip3 install http://download.pytorch.org/whl/cu90/torch-0.4.0-cp35-cp35m-win_amd64.whl

pip3 install torchvision

This weirdly fixes the problem. No idea why. Next time just try to run everything on pip