健身房在我导入游戏时报告错误"MsPacman-v4"(关于 ROM?



我尝试使用"MsPacman-v4"作为我的代理环境,但是我的python报告了以下消息。

    gym.error.Error: We're Unable to find the game "MsPacman". Note: Gym no longer 
distributes ROMs. If you own a license to use the necessary ROMs for research purposes
 you can download them via `pip install gym[accept-rom-license]`. Otherwise, you should
 try importing "MsPacman" via the command `ale-import-roms`. If you believe this is a 
mistake perhaps your copy of "MsPacman" is unsupported. To check if this is the case try 
providing the environment variable `PYTHONWARNINGS=default::ImportWarning:ale_py.roms`. 
For more information see: https://github.com/mgbellemare/Arcade-Learning-Environment#rom-
management

然后我在终端

中尝试了上面推荐的命令
pip install gym[accept-rom-license]

它开始下载,但随后报告错误…

ERROR: Command errored out with exit status 2: /usr/bin/python3 /usr/lib/python3/dist-
packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-628u67c4
/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i 
https://pypi.org/simple -- setuptools wheel requests tqdm click 'importlib-resources; 
python_version < '"'"'3.9'"'"'' Check the logs for full command output.

我该怎么做才能解决这个问题

!PIP安装健身房[atari]

!PIP安装健身房[accept-rom-license]

进口健身

env = gym.make("啤酒/MsPacman-v5"

我希望这将工作

最新更新