问题描述
使用pip安装 某些包时,报错:
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.
spyder 5.1.5 requires pyqt5<5.13, which is not installed.
spyder 5.1.5 requires pyqtwebengine<5.13, which is not installed.
conda-repo-cli 1.0.4 requires pathlib, which is not installed.
anaconda-project 0.10.2 requires ruamel-yaml, which is not installed.
原因
pip的依赖项解析器当前未考虑安装的所有包。此行为是以下依赖项冲突的根源。
因此是安装包的版本不兼容
重新安装对应版本就好了
解决办法
根据错误提示,分别重新安装符合版本要求的包,把代码附上:
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
参考:文章来源:https://www.toymoban.com/news/detail-779374.html
https://blog.csdn.net/qq_27052367/article/details/125367562文章来源地址https://www.toymoban.com/news/detail-779374.html
到了这里,关于【报错解决】ERROR: pip‘s dependency resolver does not currently take into account all the packages的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!