最近需要用evo画点图,结果用的时候出问题了,没办法可视化。。
具体报错:
[ERROR] Unhandled error in evo.main_traj
Traceback (most recent call last):
ImportError: Failed to import any of the following Qt
binding modules: PyQt6, PySide6, PyQt5, PySide2
[ERROR] evo module evo.main_traj crashed - no logfile
written (disabled)
下面是我尝试的一些博客,但是对我没啥用:
evo装成功了,但是报错evo module evo.main_traj crashed - no logfile written (disabled)_evo报错-CSDN博客
想了一下,还是直接用conda来解决:
部分人可能到上面一步就已经解决问题了,但是我还是上述报错。
仔细看了一下报错内容,好像是matplotlib出问题了:
1. 解决方法:重装,或者降低matplotlib版本
#重新安装
python -m pip uninstall matplotlib
python -m pip install --upgrade pip
python -m pip install matplotlib
#降低版本
python -m pip uninstall matplotlib
python -m pip --no-cache-dir install -U matplotlib==2.2.2
------但是还是解决不了我的问题-----
2. 可能是PyQt以及PySide有问题:
查看是否能安装PyQt5:先终端python一下,然后
import PyQt5
如果不能import,安装:
python -m pip install PyQt5
-----我到这里就解决了-----
如果还没解决,安装PySide:
python -m pip install -U PySide
参考下述博客解决的我的问题: