问题描述
今天在按照官方教程[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
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)