【问题标题】:ERROR: Cannot install gluonts, mxnet, numpy and pandas because these package versions have conflicting dependencies错误:无法安装 gluonts、mxnet、numpy 和 pandas,因为这些软件包版本具有冲突的依赖项
【发布时间】:2021-07-20 08:38:09
【问题描述】:

我想安装某些软件包:

pip install gluonts==0.8.0 mxnet~=1.7 pathlib==1.0.1 numpy==1.17.2 pandas==1.0.5 ujson==4.0.2 torch~=1.6 pytorch-lightning~=1.1

但在安装过程中,出现以下错误:

ERROR: Cannot install gluonts==0.8.0, mxnet==1.7.0.post1, mxnet==1.7.0.post2, numpy==1.17.2 and pandas==1.0.5 because these package versions have conflicting dependencies.

The conflict is caused by:
The user requested numpy==1.17.2
gluonts 0.8.0 depends on numpy~=1.16
pandas 1.0.5 depends on numpy>=1.13.3
mxnet 1.7.0.post2 depends on numpy<1.17.0 and >=1.8.2
The user requested numpy==1.17.2
gluonts 0.8.0 depends on numpy~=1.16
pandas 1.0.5 depends on numpy>=1.13.3
mxnet 1.7.0.post1 depends on numpy<1.17.0 and >=1.8.2

我指的是以下站点进行这些安装: https://business-science.github.io/modeltime.gluonts/articles/managing-envs.html

有没有办法安装所有这些包而不发生任何依赖冲突(即使它必须在新的 python 环境中,例如pipenv myenv)?

【问题讨论】:

    标签: python pandas numpy mxnet-gluon


    【解决方案1】:

    您必须安装 numpy 1.16.6 才能与 mxnet 1.7 兼容。 由于 python 大于 3.7 的 numpy 1.16.6 没有二进制(whl)文件,因此您需要一个编译器来从源代码(一个 zip 文件)构建 numpy。另见how to solve numpy error while installing mxnet?

    或者使用 python 3.7 代替 numpy 1.16.6 和 mxnet 1.7

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-12-16
      • 2021-12-06
      • 2021-01-06
      • 2023-02-12
      • 2023-01-02
      • 1970-01-01
      • 1970-01-01
      • 2016-07-29
      相关资源
      最近更新 更多