我想安装某些包:
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
)?
发布于 2021-11-07 21:09:59
您必须安装numpy 1.16.6才能与mxnet 1.7兼容。由于对于超过3.7版本的python,numpy 1.16.6没有二进制(whl)文件,因此您需要一个编译器来从源代码(一个zip文件)构建numpy。另请参阅how to solve numpy error while installing mxnet?
或者使用带有numpy 1.16.6和mxnet 1.7的python 3.7
https://stackoverflow.com/questions/68451898
复制相似问题