【slam】slam轨迹评估工具evo报错解决

sun@sun-Legion-Y9000P-IAH7H:~/slam/FUZZY33$ evo_traj tum groundtruth.txt --plot
--------------------------------------------------------------------------------
name:	groundtruth
infos:	2335 poses, 10.599m path length, 23.400s duration
[ERROR] Unhandled error in evo.main_traj
Traceback (most recent call last):
  File "/home/sun/slam/evo-master/evo/entry_points.py", line 95, in launch
    main_module.run(args)
  File "/home/sun/slam/evo-master/evo/main_traj.py", line 304, in run
    from evo.tools import plot
  File "/home/sun/slam/evo-master/evo/tools/plot.py", line 88, in <module>
    apply_settings(SETTINGS)
  File "/home/sun/slam/evo-master/evo/tools/plot.py", line 63, in apply_settings
    mpl.use(settings.plot_backend)
  File "/home/sun/.local/lib/python3.8/site-packages/matplotlib/__init__.py", line 1237, in use
    plt.switch_backend(name)
  File "/home/sun/.local/lib/python3.8/site-packages/matplotlib/pyplot.py", line 271, in switch_backend
    backend_mod = importlib.import_module(
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/home/sun/.local/lib/python3.8/site-packages/matplotlib/backends/backend_tkagg.py", line 1, in <module>
    from . import _backend_tk
  File "/home/sun/.local/lib/python3.8/site-packages/matplotlib/backends/_backend_tk.py", line 15, in <module>
    from PIL import Image, ImageTk
ImportError: cannot import name 'ImageTk' from 'PIL' (/usr/lib/python3/dist-packages/PIL/__init__.py)

解决 

sudo apt-get install python3-pil python3-pil.imagetk

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值