2 import torch
3 from torch.utils.data import Dataset
----> 4 import torchaudio
5 import torchaudio.transforms as T
i do not have gpu
i installed torchaudio
2 import torch
3 from torch.utils.data import Dataset
----> 4 import torchaudio
5 import torchaudio.transforms as T
i do not have gpu
i installed torchaudio
Did you install torchaudio with CUDA support and PyTorch without?
If so, you should to install the same accelerator support, i.e. the CPU-only binaries since you do not have a GPU in your system.
pip list | grep torch should show which binaries you have installed.
torch 2.8.0+cpu
torchaudio 2.8.0
torchvision 0.23.0+cpu
there not showing cpu at torchaudio
Thanks for confirming my guess.
Uninstall the torchaudio binary with CUDA support and install the CPU-only binary:
pip uninstall torchaudio -y
pip install torchaudio --index-url https://download.pytorch.org/whl/cpu
thanks it is working now