You can try installing Pytorch again with Mamba, I am not sure of the main cause but it seems if you install pytorch using Pip then it results in conflict so try with Mamba
mamba install -c pytorch pytorch