已解决ERROR: pip’s dependency resolver does not currently take into account all the packages that are

Posted 袁袁袁袁满

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了已解决ERROR: pip’s dependency resolver does not currently take into account all the packages that are相关的知识,希望对你有一定的参考价值。

已解决pip安装opencv-python模块,抛出异常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.
paddlepaddle 1.8.5 requires opencv-python<=4.2.0.32, but you have opencv-python 4.3.0.38 which is incompatible.的解决方法亲测有效,按下文解决即可





文章目录





报错问题



粉丝群里面的一个小伙伴遇到问题跑来私信我,想用pip安装opencv-python模块,但是发生了报错(当时他心里瞬间凉了一大截,跑来找我求助,然后顺利帮助他解决了,顺便记录一下希望可以帮助到更多遇到这个bug不会解决的小伙伴),报错代码如下所示:

pip3 install opencv-python==4.3.0.38

报错信息截图如下所示


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.
paddlepaddle 1.8.5 requires opencv-python<=4.2.0.32, but you have opencv-python 4.3.0.38 which is incompatible.




报错翻译



报错信息翻译如下所示

错误:pip的依赖关系解析程序当前没有考虑安装的所有包。这种行为是以下依赖关系冲突的根源。
飞桨1.8.5要求opencv-python<=4.2.0.32,但您的opencv-pithon 4.3.0.38不兼容。




报错原因



报错原因

opencv-python版本问题,与其他第三方模块不兼容。

小伙伴按下面代码安装指定版本即可!!!




解决方法


安装opencv-python版本<=4.2.0.32的即可,执行下面的安装命令:

pip3 install opencv-python==4.2.0.32

以上是此问题报错原因的解决方法,欢迎评论区留言讨论是否能解决,如果有用欢迎点赞收藏文章谢谢支持,博主才有动力持续记录遇到的问题!!!

千人全栈VIP答疑群联系博主帮忙解决报错

由于博主时间精力有限,每天私信人数太多,没办法每个粉丝都及时回复,所以优先回复VIP粉丝,可以通过订阅限时9.9付费专栏《100天精通Python从入门到就业》进入千人全栈VIP答疑群,获得优先解答机会(代码指导、远程服务),白嫖80G学习资料大礼包,专栏订阅地址:https://blog.csdn.net/yuan2019035055/category_11466020.html

  • 优点作者优先解答机会(代码指导、远程服务),群里大佬众多可以抱团取暖(大厂内推机会),此专栏文章是专门针对零基础和需要进阶提升的同学所准备的一套完整教学,从0到100的不断进阶深入,后续还有实战项目,轻松应对面试!

  • 专栏福利简历指导、招聘内推、每周送实体书、80G全栈学习视频、300本IT电子书:Python、Java、前端、大数据、数据库、算法、爬虫、数据分析、机器学习、面试题库等等

  • 注意:如果希望得到及时回复,和大佬们交流学习,订阅专栏后私信博主进千人VIP答疑群

免费资料获取,更多粉丝福利,关注下方公众号获取

pygame使用pip安装时报错,求解决

pygame使用pip安装时报错,求各位大佬帮忙解决

pip版本22.3.1已升级
setuptools版本65.5.1已升级
Python版本3.11环境变量已添加
使用代码pip install pygame
错误代码如下
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [77 lines of output]

  WARNING, No "Setup" File Exists, Running "buildconfig/config.py"
  Using WINDOWS configuration...

[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

以上是关于已解决ERROR: pip’s dependency resolver does not currently take into account all the packages that are的主要内容,如果未能解决你的问题,请参考以下文章

已解决error: legacy - install - failure

已解决Encountered error while trying to install package.> lxml

pygame使用pip安装时报错,求解决

已解决!pip安装daal库时报错:ERROR: Cannot uninstall ‘TBB‘. It is a distutils installed project and......其它库类推

pip install imblearn安装失败已解决

pip install imblearn安装失败已解决