当前位置:网站首页>pytest+allure+jenkins安装问题:pytest: error: unrecognized arguments: --alluredir
pytest+allure+jenkins安装问题:pytest: error: unrecognized arguments: --alluredir
2022-07-07 04:19:00 【ADDA_】
问题描述
在pycharm上可以正常生成报告,但是在jenkins上运行时一直报以下错误。
pytest: error: unrecognized arguments: --alluredir=reports
inifile: None
rootdir: D:\xxx
原因分析:
搜集了大量资料,总结一下:
1、安装allure-pytest与allure-python-commons的环境是虚拟环境,不是pytest运行的环境;
2、有多个python,导致出错。
解决方案:
针对1解决方案:
1、cmd 输入pip list查看安装情况,没有allure-pytest 执行pip install allure-pytest应该就可以了;
2、已经有安装的,需要重新安装allure-pytest与allure-python-commons,最好两个都卸载,不然有可能出问题,卸载命令pip uninstall allure-pytest、pip uninstall allure-python-commons,安装命令pip install allure-pytest、pip install allure-python-commons
边栏推荐
- 按键精灵脚本学习-关于天猫抢红包
- Jenkins远程构建项目超时的问题
- IO stream file
- 【p2p】本地抓包
- 1140_ SiCp learning notes_ Use Newton's method to solve the square root
- Interviewer: what development models do you know?
- [semantic segmentation] - multi-scale attention
- 【数学笔记】弧度
- Wechat applet full stack development practice Chapter 3 Introduction and use of APIs commonly used in wechat applet development -- 3.9 introduction to network interface (IX) extending the request3 met
- buuctf misc USB
猜你喜欢

leetcode:105. 从前序与中序遍历序列构造二叉树

07_ Handout on the essence and practical skills of text measurement and geometric transformation

【webrtc】m98 screen和window采集

3、 High quality programming and performance tuning practical youth training camp notes

Redis data migration

The metauniverse of the platofarm farm continues to expand, with Dao governance as the core

Detailed explanation of neo4j installation process

What are the positions of communication equipment manufacturers?

Example of Pushlet using handle of Pushlet

今日现货白银操作建议
随机推荐
The metauniverse of the platofarm farm continues to expand, with Dao governance as the core
解决:Could NOT find KF5 (missing: CoreAddons DBusAddons DocTools XmlGui)
nacos
After 95, Alibaba P7 published the payroll: it's really fragrant to make up this
L'externalisation a duré trois ans.
UWB learning 1
微信小程序中使用wx.showToast()进行界面交互
图解GPT3的工作原理
微信小程序中的路由跳转
After 95, the CV engineer posted the payroll and made up this. It's really fragrant
Outsourcing for four years, abandoned
2、 Concurrent and test notes youth training camp notes
微博发布案例
聊聊异步编程的 7 种实现方式
1141_ SiCp learning notes_ Functions abstracted as black boxes
二、并发、测试笔记 青训营笔记
Advanced practice of C language (high level) pointer
Detailed explanation of uboot image generation process of Hisilicon chip (hi3516dv300)
JS get all date or time stamps between two time stamps
vus.SSR在asynData函数中请求数据的注意事项