@Mohammed thanks for the reply. I used this command:
pip install torch-1.8.0+cu111-cp39-cp39-win_amd64.whl torchvision==0.9.0+cu111 torchaudio==0.8.0 -f https://download.pytorch.org/whl/torch_stable.html
I do get the output for torch.__version__  you have posted but, the problem persists.