Try to use the complete command as:
pip install torch==1.5.0+cpu torchvision==0.6.0+cpu -f https://download.pytorch.org/whl/torch_stable.html

If that doesn’t help, try to update your pip and rerun the installation.