错误:pip 的依赖项解析器当前未考虑已安装的所有软件包

  • 本文关键字:软件包 安装 依赖 pip 错误 python numpy
  • 更新时间 :
  • 英文 :

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.
daal4py 2021.5.0 requires daal==2021.4.0, which is not installed.
mxnet 1.7.0.post2 requires numpy<1.17.0,>=1.8.2, but you have numpy 1.18.5 which is incompatible.
d2l 0.17.5 requires numpy==1.21.5, but you have numpy 1.18.5 which is incompatible.
d2l 0.17.5 requires requests==2.25.1, but you have requests 2.18.4 which is incompatible.

尝试在pip安装命令之后添加--use-deprecated=legacy-resolver例如:

!PIP install -r让——use-deprecated = legacy-resolver

下面的解决方案为我工作:

在你安装你的扩展之前,只要按照提示

pip install h5py
pip install typing-extensions
pip install wheel

,然后安装你的扩展

感谢源代码。来源:https://github.com/apple/turicreate/issues/3383 issuecomment - 1010006358

您安装的软件包版本之间存在兼容性问题。要解决这个问题,你必须卸载那些不兼容的,然后安装那些兼容的。

在终端运行:

pip uninstall daal==2021.5.0
pip install daal==2021.4.0
pip uninstall numpy==1.18.5
pip install numpy==1.8.2
pip install numpy==1.21.5
pip uninstall requests==2.18.4
pip install requests==2.25.1

注意:你可以在你的环境中检查所有的包和依赖:

pip freeze

最新更新