GluonTS依赖的package安装

文章讲述了在安装Python包时遇到的错误,特别是关于MXNet的构建失败,作者提到使用特定版本的Python(如3.8.0)、GluonTS(0.14.0)等,并提供了参考博客链接来解决numpy构建问题。
摘要由CSDN通过智能技术生成

版本对应关系

版本
python3.8.0
gluonts0.14.0
torch2.1.1
lightning2.1.2
scipy1.10.1
matplotlib3.7.4
orjson3.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
③成功解决。

  • 8
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值