ImportError: libtinfo.so.5: cannot open shared object file: No such file or directory
On an Ubuntu-based system, I got this error that I didn't have before in an existing FastAI Python project.
Traceback:
Traceback (most recent call last):
  File &quot;/home/me/PycharmProjects/project/model/predict.py&quot;, line 6, in &lt;module&gt;
    from fastai.vision.all import *
  File &quot;/home/me/miniconda3/envs/venv/lib/python3.9/site-packages/fastai/vision/all.py&quot;, line 1, in &lt;module&gt;
    from . import models
  File &quot;/home/me/miniconda3/envs/venv/lib/python3.9/site-packages/fastai/vision/models/__init__.py&quot;, line 1, in &lt;module&gt;
    from . import xresnet
  File &quot;/home/me/miniconda3/envs/venv/lib/python3.9/site-packages/fastai/vision/models/xresnet.py&quot;, line 17, in &lt;module&gt;
    from ...torch_basics import *
  File &quot;/home/me/miniconda3/envs/venv/lib/python3.9/site-packages/fastai/torch_basics.py&quot;, line 1, in &lt;module&gt;
    from torch import multiprocessing
  File &quot;/home/me/miniconda3/envs/venv/lib/python3.9/site-packages/torch/__init__.py&quot;, line 190, in &lt;module&gt;
    from torch._C import *
ImportError: libtinfo.so.5: cannot open shared object file: No such file or directory


Terminal:
sudo apt-get install libtinfo5

