No module named 'torch.C'

On windows10 Python38 and torch-2.0.0, suddenly all my working torch-related programs have started failing thus:
import torch
File “C:\Python\Python38\lib\site-packages\torch_init_.py”, line 229, in
from torch._C import * # noqa: F403
ModuleNotFoundError: No module named ‘torch._C’

What changed in my system? maybe a transformer install, i;m not sure,

\site-packages\torch\ contains a folder _c (lower[case c), not ._C
so I tried altering ._C to -_c in init.py and got this behaviour instead:
from torch._c import * # noqa: F403
ImportError: dynamic module does not define module export function (PyInit__c)

Existing posts o this topic do=;t help. I am baffled!

Guess I’ll have to figure out how to re-install torch with my cuda…

Yes, a 3rd part library might have created conflicts in your environment and reinstalling PyTorch in a new and clean virtual environment sounds like a valid idea.