表现:
使用命令在~路径下安装:
pip3 install evo --upgrade --no-binary evo
安装EVO,发现错误:
ERROR: pandas 0.24.2 has requirement python-dateutil>=2.5.0, but you'll have python-dateutil 2.4.2 which is incompatible. 
Installing collected packages: numpy, cycler, kiwisolver, matplotlib, scipy, pytz, pandas, seaborn, natsort, colorama, evo 
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/lib/python3.5/dist-packages/numpy' Consider using the `--user` option or check the permissions.
解决:
1. 首先尝试:
pip3 install --upgrade python-dateutil
出现错误:
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: 'easter.py'
Consider using the `--user` option or check the permissions.
按照链接中的解决办法安装虚拟环境:
sudo apt-get install python3-venv
python3 -m venv env
source ./env/bin/activate
重新执行:
pip3 install --upgrade python-dateutil
安装成功。
2. 在此基础上安装:
pip3 install evo --upgrade --no-binary evoCollecting evo
出现error和提示:
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-v3u8zy4g/matplotlib/
You are using pip version 8.1.1, however version 19.2.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
运行:
pip install --upgrade pip
再运行:
pip3 install evo --upgrade --no-binary evo
安装成功。
3.后续使用,打开一个新的terminal后,需要在~路径下先执行
source ./env/bin/activate
再使用evo命令。
4. 使用--plot参数发现错误:
[ERROR] Unhandled error in evo.main_ape
Traceback (most recent call last):
  File "/usr/lib/python3.5/tkinter/__init__.py", line 36, in <module>
    import _tkinter
ImportError: No module named '_tkinter'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/home/junchuan/env/lib/python3.5/site-packages/evo/entry_points.py", line 90, in launch
    main_module.run(args)
  File "/home/junchuan/env/lib/python3.5/site-packages/evo/main_ape.py", line 245, in run
    result.trajectories[est_name])
  File "/home/junchuan/env/lib/python3.5/site-packages/evo/common_ape_rpe.py", line 91, in plot
    from evo.tools import plot
  File "/home/junchuan/env/lib/python3.5/site-packages/evo/tools/plot.py", line 35, in <module>
    import matplotlib.pyplot as plt
  File "/home/junchuan/env/lib/python3.5/site-packages/matplotlib/pyplot.py", line 2372, in <module>
    switch_backend(rcParams["backend"])
  File "/home/junchuan/env/lib/python3.5/site-packages/matplotlib/pyplot.py", line 207, in switch_backend
    backend_mod = importlib.import_module(backend_name)
  File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/home/junchuan/env/lib/python3.5/site-packages/matplotlib/backends/backend_tkagg.py", line 1, in <module>
    from . import _backend_tk
  File "/home/junchuan/env/lib/python3.5/site-packages/matplotlib/backends/_backend_tk.py", line 5, in <module>
    import tkinter as Tk
  File "/usr/lib/python3.5/tkinter/__init__.py", line 38, in <module>
    raise ImportError(str(msg) + ', please install the python3-tk package')
ImportError: No module named '_tkinter', please install the python3-tk package
[ERROR] evo module evo.main_ape crashed - no logfile written (disabled)
解决:安装tk包:
sudo apt install python3-tk
Logo

GitCode 天启AI是一款由 GitCode 团队打造的智能助手,基于先进的LLM(大语言模型)与多智能体 Agent 技术构建,致力于为用户提供高效、智能、多模态的创作与开发支持。它不仅支持自然语言对话,还具备处理文件、生成 PPT、撰写分析报告、开发 Web 应用等多项能力,真正做到“一句话,让 Al帮你完成复杂任务”。

更多推荐