版本对应关系
包 | 版本 |
---|---|
python | 3.8.0 |
gluonts | 0.14.0 |
torch | 2.1.1 |
lightning | 2.1.2 |
scipy | 1.10.1 |
matplotlib | 3.7.4 |
orjson | 3.9.10 |
安装指令
conda create -n GluonTS python=3.8.0
conda activate GluonTS
pip install gluonts==0.14.0
pip install torch==2.1.1
pip install lightning==2.1.2
pip install scipy==1.10.1
pip install matplotlib==3.7.4
pip install orjson==3.9.10
pip install mxnet==1.6.0
安装mxnet,遇到错误,报错如下
ERROR: Failed building wheel for numpy
Running setup.py clean for numpy
error: subprocess-exited-with-error
× python setup.py clean did not run successfully.
│ exit code: 1
╰─> [10 lines of output]
Running from numpy source directory.
`setup.py clean` is not supported, use one of the following instead:
- `git clean -xdf` (cleans all files)
- `git clean -Xdf` (cleans all versioned files, doesn't touch
files that aren't checked into the git repo)
Add `--force` to your command to use it anyway if you must (unsupported).
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed cleaning build dir for numpy
Failed to build numpy
ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects
参考了如下博文的解决方案:
https://blog.csdn.net/weixin_62075168/article/details/129758163
③成功解决。