deMacBook-Pro:bndcs yuansanmei$ python3 -m pip install httprunner==v4.3.0
Requirement already satisfied: httprunner==v4.3.0 in /Users/y/Library/Python/3.10/lib/python/site-packages (4.3.0)
Requirement already satisfied: black<23.0.0,>=22.3.0 in /Users/y/Library/Python/3.10/lib/python/site-packages (from httprunner==v4.3.0) (22.6.0)
Requirement already satisfied: pyyaml<6.0.0,>=5.4.1 in /Users/y/Library/Python/3.10/lib/python/site-packages (from httprunner==v4.3.0) (5.4.1)

解决:python3 -m pip install httprunner==v4.3.0 --target=/Users/y/Library/Python/3.10/lib/python/site-packages

然后又遇到了第二个问题:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
jsonsearch 0.0.2 requires pytest<=3.10.1,>=2.8.0, but you have pytest 7.2.0 which is incompatible.
===意思好像是pytest版本太高了。。

从问题提示来看,就是pip 的依赖项解析器当前未考虑安装的所有包。此行为是以下依赖项冲突的根源。

二、解决办法

python3 -m pip install pytest==v3.10.1 --target=/Users/y/Library/Python/3.10/lib/python/site-packages

我就根据错误提示,分别重新安装了以上四个版本要求的包,不再截图,把代码附上:

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple " pyqt5<5.13"
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple " pyqtwebengine<5.13"
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pathlib
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple ruamel-yaml
然后就没有报错了。

又出现了报错:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
pytest-html 3.2.0 requires pytest!=6.0.0,>=5.0, but you have pytest 3.10.1 which is incompatible.
httprunner 4.3.0 requires pytest<8.0.0,>=7.1.1, but you have pytest 3.10.1 which is incompatible.
allure-pytest 2.10.0 requires pytest>=4.5.0, but you have pytest 3.10.1 which is incompatible.
Successfully installed atomicwrites-1.4.1 attrs-22.1.0 more-itertools-9.0.0 pluggy-1.0.0 py-1.11.0 pytest-3.10.1 setuptools-65.6.0 six-1.16.0

jsonsearch 0.0.2 requires pytest<=3.10.1,>=2.8.0, but you have pytest 7.2.0 which is incompatible.
===意思好像是pytest版本太高了。。

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
pytest-html 3.2.0 requires pytest!=6.0.0,>=5.0, but you have pytest 3.10.1 which is incompatible.
httprunner 4.3.0 requires pytest<8.0.0,>=7.1.1, but you have pytest 3.10.1 which is incompatible.
allure-pytest 2.10.0 requires pytest>=4.5.0, but you have pytest 3.10.1 which is incompatible.

7.2.0

httprunner运行遇到彻底解决安装包过程中的Requirement already satisfied:问题的更多相关文章

  1. ubuntu 安装包过程中遇到的一个错误解决办法

    错误提示如下: 将会安装下列额外的软件包: libdigest-hmac-perl libqt5test5下列[新]软件包将被安装: libdigest-hmac-perl下列软件包将被升级: lib ...

  2. 解决pycharm安装包过程出现的问题:module 'pip' has no attribute 'main'

    解决pycharm安装包过程出现的问题:module 'pip' has no attribute 'main' 问题 更新pip之后,Pycharm安装package出现如下报错:module 'p ...

  3. 解决SQL订阅过程中找不到已经创建的订阅

    原文:解决SQL订阅过程中找不到已经创建的订阅 之前有写过一篇博客,主要是图解SQL复制技术:图解SQL 2008数据库复制,当时的测试环境是在我本地同一个服务器上面,所以测试的时候可谓是一帆风顺,最 ...

  4. ubuntu 下解决安装包依赖问题

    我们用banshee软件安装豆瓣插件来做个示例: 1.首先在Ubuntu Software Center内搜索banshee播放器 因为我之前已经安装好了,可以看到如下界面,你可以在点击该软件看到in ...

  5. 关于解决配置Tomact过程中出现的相关问题

    最近在学习JavaWeb, 但是在第一步的时候就出现问题了, 什么问题呢, 就是关于Tomact的配置. 下面我就详细说明一下我配置过程中出现的问题以及怎么解决的,  希望对大家能有所帮助. 首先,我 ...

  6. 解决url传递过程中加号变空格的问题

    url传递过程中加号变空格 在接收url参数的过程中,会发现如果参数中存在‘+’号,接收后会变成空格. 如11+22接收后变成11 22. 要解决这个问题,需要将加号替换为%2B进行传递. 如11%2 ...

  7. Aandroid 解决apk打包过程中出现的“Certificate for <jcenter.bintray.com> doesn't match any of the subject alternative names: [*.aktana.com, aktana.com]”的问题

    有时候,apk打包过程中会出现“Certificate for <jcenter.bintray.com> doesn't match any of the subject alterna ...

  8. 解决url传递过程中加号变空格的问题<转>

    url传递过程中加号变空格在接收url参数的过程中,会发现如果参数中存在‘+’号,接收后会变成空格. 如11+22接收后变成11 22.要解决这个问题,需要将加号替换为%2B进行传递. 如11%2B2 ...

  9. 为Secure Store Service生成新密钥,解决“生成密钥过程中发现错误”的问题

    我们集成TFS和SharePoint Server以后,一个最常见的需求是通过SharePoint Server的Excel Service读取TFS报表中的信息,利用Excel Service的强大 ...

  10. 解决https 请求过程中SSL问题

    最近一个项目中用到了https的请求,在实际调用过程中发现之前的http方法不支持https,调用一直报错. 查询了一下,添加几行代码解决问题. public string HttpPost(stri ...

随机推荐

  1. go 语言 for循环的一个坑

    1.案例1 package main import "fmt" type Card struct { id int } func main() { list := make([]* ...

  2. 快速构建用户xlwings环境

    一.安装python python-3.8.3-amd64.exe 二.准备文件requirements.txt 内容如下 安装失败需要切换国内镜像源 numpy==1.22.1 openpyxl== ...

  3. k8s网路策略

    Network Policy(网络策略) 默认情况下,k8s集群网络是没有任何限制的,Pod可以和任何其他Pod通信,在某些场景下需要做网络控制,减少网络面的攻击,提高安全性,就会用到网络策略(Net ...

  4. 浏览器tab标签切换触发监听事件visibilitychange

    document.addEventListener('visibilitychange', function() { if(document.hidden){ //当页面切换或隐藏时触发的代码,可以用 ...

  5. RIDE,如何指定report,log,output的存放位置

    创建测试用例,执行后,report.html,log.html,output.txt 会默认存放到 C:\Users\你的用户名\AppData\Local\Temp下, 例如我的存放在 如果要指定存 ...

  6. Cookie之记录用户上次访问时间

    Cookie之记录用户访问时间 需求: 需求: 1:用户访问服务器(Servlet),判断用户是否是第一次访问,如果是第一次访问,则在页面响应内容为:"您好,欢迎您首次访问"; 2 ...

  7. 当越来越多的企业放弃使用FTP,该用什么更好的方式替代?

    FTP作为第一个完整的文件传输协议,在互联网技术发展史上具有浓墨重彩的意义,它解决了文件传输协议有无的问题,在全世界范围内被广泛使用.但如今,随着网络技术的发展,企业生产类型和生产资料的丰富化,文件传 ...

  8. 七、25.创建user子分支并把代码推送到码云仓库中

    打开终端点击+新建一个终端 注意 :如下操作都是在2:powershell下进行 先来检查一下当前所处分支 git branch 我们应该把这些代码都写到user分支上 接下来应该把这些代码统一迁移到 ...

  9. shardingsphere 5.0.0

    pom <dependency> <groupId>org.apache.shardingsphere</groupId> <artifactId>sh ...

  10. Mac卡顿 CPU占100%的原因Photolibraryd

    找到了造成电脑卡顿的元凶,第一步要做的就是杀进程,选中这两个进程,点击上面的结束按钮,世界立马恢复了宁静,高兴的继续码代码,可是好景不长,大约一个小时以后,又特么卡了,"任务管理器" ...