首页 > 其他分享 >httprunner运行遇到彻底解决安装包过程中的Requirement already satisfied:问题

httprunner运行遇到彻底解决安装包过程中的Requirement already satisfied:问题

时间:2022-11-21 16:23:02浏览次数:42  
标签:Requirement already httprunner 3.10 but pytest pip packages 安装包

 

 

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




 

标签:Requirement,already,httprunner,3.10,but,pytest,pip,packages,安装包
From: https://www.cnblogs.com/yiyaxuan/p/16911784.html

相关文章