ERROR: Could not build wheels for AutoROM.accept-rom-license 安装stable-baselines3错误 解决方案

43 篇文章 0 订阅
10 篇文章 0 订阅
在尝试按照官方教程安装stable-baselines3时遇到错误,具体涉及AutoROM.accept-rom-license构建轮子失败。通过升级AutoROM并接受许可,然后重新安装stable-baselines3[extra],问题得到解决。
摘要由CSDN通过智能技术生成

问题描述

今天在按照官方教程[1],使用

pip install stable-baselines3[extra]

安装stable-baseline3时,遇到了以下bug:

  Building wheel for AutoROM.accept-rom-license (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for AutoROM.accept-rom-license (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [467 lines of output]
...

RuntimeError: Terminating attempt to download ROMs after 180 seconds, this has failed, please report it.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for AutoROM.accept-rom-license
Successfully built gym
Failed to build AutoROM.accept-rom-license
ERROR: Could not build wheels for AutoROM.accept-rom-license, which is required to install pyproject.toml-based projects

解决方案

在参考了[2]之后,找到了该问题的解决方案:

pip install --upgrade AutoROM
AutoROM --accept-license
pip install stable-baselines3[extra]

在等待一会之后,成功安装,问题解决。

参考链接

[1] https://github.com/DLR-RM/stable-baselines3

[2] [Question] stucking when running pip install `gym[accept-rom-license]==0.21.0` · Issue #3170 · openai/gym · GitHub

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值