allure安装笔记

380 阅读1分钟

1、下载地址 Releases · allure-framework/allure2 (github.com)

2、解压到任意目录下,打开至bin目录(我本地是G:\allure-2.21.0\bin),双击bin目录下的allure.bat文件

image.png

3、将allure.bat文件的路径配置到环境变量path中,保存

image.png

4、验证allure环境变量是否配置成功:在cmd中输入allure

image.png

5、安装成功之后继续安装allure-pytest

pip install allure-pytest

此时提示:

WARNING: You are using pip version 21.2.3; however, version 23.1.1 is available. You should consider upgrading via the 'G:\python3.10\python.exe -m pip install --upgrade pip' command.

image.png

原因是因为pip有最新的版本,可以通过如下命令查看pip的版本:pip show pip

更新一下pip版本即可。使用如下命令:python -m pip install -U pip

来源: Python3安装第三方库失败,提示:WARNING: You are using pip version 21.2.3; however, version 21.3.1 is available.

参考笔记:

allure的安装和使用(windows环境)_allure运行

allure的安装及配置_allure安装