RuntimeError: Detected that PyTorch and TorchAudio were compiled with different CUDA versions.
PyTorch has CUDA version 11.8 whereas TorchAudio has CUDA version 11.7. Please install the TorchAudio version that matches your PyTorch version.
升级版本即可
pip install torch==2.0.1+cu118 --index-url https://download.pytorch.org/whl/cu118
pip install torchaudio==2.0.2
https://pytorch.org/get-started/previous-versions/
https://pytorch.org/audio/main/installation.html