-
Hi -- installation went fine, no errors. I'm getting a "ModuleNotFoundError: No module named 'torch._C'" error when I try to run it. Same thing if I try to "import whisper" on the python console. "import torch" works fine when I try that.
Any thoughts? Thanks! Edit: some more detail: While "import torch" works, "from torch._C import *" gives the same error as above. ~/.local/lib/python3.10/site-packages/torch has no _C.* file which this leads me to believe it should... |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Use python version 3.9.9 |
Beta Was this translation helpful? Give feedback.
-
Ran into the same thing recently. Removing torch and then reinstalling it through pip as recommended on pytorch.org solved the issue for me. |
Beta Was this translation helpful? Give feedback.
-
Encountered the same issue today with Ultralytics. What worked for me was:
pip uninstall torch torchvision ultralytics
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu |
Beta Was this translation helpful? Give feedback.
Ran into the same thing recently. Removing torch and then reinstalling it through pip as recommended on pytorch.org solved the issue for me.
P.S. Used ubuntu 22.04, python 3.8, virtualenv, pip. I suspect that not having GPU on my laptop could be the cause for this issue, but I'm completely not sure about it.