Pytorch crashes with linking error on libavcodec.so.58
Bug #2049707 reported by
Dr. Robert Marmorstein
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pytorch (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
After installing python3-torch, I ran python3 and ran "import torch". Instead of working, it gives this error:
Python 3.11.6 (main, Oct 8 2023, 05:06:43) [GCC 13.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/
from torch._C import * # noqa: F403
^^^
ImportError: libavcodec.so.58: cannot open shared object file: No such file or directory
>>>
To post a comment you must log in.