ModuleNotFoundError: No module named ‘torch.ao‘

Foreword:

This is the error reported by the blogger when running the code when installing torch v1.8.2 with LTS support.

 1. Version Description

The methods on the Internet say that this is a version mismatch, but the version number given by the torch official website matches.

torch=1.8.2

torchaudio=0.8.2

torchvision=0.13.1

2. Problem solving

Use the mouse to click on the file where pycharm reports the error and click in (ctrl+left-click).

 Just delete the ao in the middle

 

 

3. Attention

If you try to install other versions of torchaudio, the currently dependent pytorch will also be deleted.

Guess you like

Origin blog.csdn.net/weixin_44503976/article/details/129735842
Recommended