当前位置:   article > 正文

EVO安装与问题解决_evo 安装

evo 安装

1.安装方法

1.1 快捷安装 ,直接安装最新的稳定发行版:

pip install evo --upgrade --no-binary evo
  • 1

1.2 源码安装 ,下载源码进行安装:
首先在任意文件夹下下载evo,也可以在home中直接下载

git clone https://github.com/MichaelGrupp/evo.git
  • 1

然后进入evo文件夹下打开终端运行:

pip install --editable . --upgrade --no-binary evo
  • 1

2.问题及解决办法

2.1 安装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
  • 2
  • 3

解决:

pip3 install --upgrade python-dateutil
  • 1

2.2.出现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.
  • 1
  • 2
  • 3

运行:

pip install --upgrade pip
  • 1

再运行:

pip3 install evo --upgrade --no-binary evo
  • 1

安装成功。
2.3 使用–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)
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29

解决:安装tk包:

sudo apt install python3-tk
  • 1

2.4 WARNING: The scripts f2py, f2py3 and f2py3.6 are installed in ‘/home/nano/.local/bin‘ which is not o

 WARNING: The scripts f2py, f2py3 and f2py3.6 are installed in '/home/nano/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  • 1
  • 2

解决:

gedit  ~/.bashrc
  • 1

在bashrc里面写入

export PATH=/home/nano/.local/bin/:$PATH
  • 1

更新
在终端输入

source ~/.bashrc  
  • 1

2.5 DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020.
写一个配置文件

gedit ~/.bash_profile
  • 1

写入保存:

PATH="/usr/bin:${PATH}"
export PATH
alias python="/usr/bin/python3"
  • 1
  • 2
  • 3

如果希望python3的环境时输入:

source  ~/.bash_profile
  • 1

3 参考

3.1 DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020.
3.2 WARNING: The scripts f2py, f2py3 and f2py3.6 are installed in ‘/home/nano/.local/bin‘ which is not o
3.3 ubuntu 16 安装EVO过程中发现的问题及解决办法

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Gausst松鼠会/article/detail/282634
推荐阅读
相关标签
  

闽ICP备14008679号