pytorch should be installed via pip as conda is not supported. You can follow the instructions here https://pytorch.org/get-started/locally/
For Cuda 11.8 the command is
pip3 install torch --index-url https://download.pytorch.org/whl/cu118
To be sure, you can first uninstall other version
python -m pip uninstall torch
python -m pip cache purge