Could you create a new and clean conda environment and install pytorch there again?
E.g.:
conda create -n pytorch_env Python=3.7 Anaconda
...
conda activate pytorch_env
conda install pytorch torchvision cudatoolkit=10.0 -c pytorch