Hi, try to install Anaconda,create env and then run this command
conda install pytorch torchvision torchaudio cudatoolkit=11.1 -c pytorch -c nvidia

NOTE: ‘nvidia’ channel is required for cudatoolkit 11.1