在网上看到有关evo安装,主要有两种方式,一种是快速安装,另一种是源码安装。
但无论哪种安装方式,都需要先更新一下pip。
1. 更新pip
- pip install --user --upgrade pip
- # pip安装numpy和matplotlib,这里使用了清华的镜像
- pip install --user --upgrade -i https://pypi.tuna.tsinghua.edu.cn/simple numpy
- pip install --user --upgrade -i https://pypi.tuna.tsinghua.edu.cn/simple matplotlib
如果终端提示没有安装pip,那就按照终端提示进行相应安装即可。
2. 安装evo
2.1 方式一,源码安装
- git clone https://github.com/MichaelGrupp/evo.git
- cd evo
- # 利用国内源加速
- pip install -i https://pypi.tuna.tsinghua.edu.cn/simple evo --upgrade --no-binary evo
2.2 方式二,快速安装
- pip install evo --upgrade --no-binary evo
有关evo使用就比较简单了,把要用到的.txt文件放到同一个文件夹中,在文件夹中打开终端,输入evo相应指令进行操作即可。
最后附上evo在github上的托管地址: