Loading

Linux 16.04.1-Ubuntu 安装 Python3 + openAi Gym 以及错误解决

准备工作

  • 下载最新Anaconda,直接使用自带的Python版本即可
    • 注意更新系统变量,执行source ~/.bashrc
  • 更换清华Anaconda源

安装gym

conda install -c conda-forge -c powerai gym

或者

pip install --upgrade git+https://github.com/openai/gym
pip install autorom

安装成功之后执行 gym.make(MontezumaRevengeNoFrameskip-v0)

出现如下报错

gym.error.UnregisteredEnv: No registered env with id: MontezumaRevengeNoFrameskip-v0

可以考虑安装

pip install gym[all]

如果出现

gym.error.Error: We're Unable to find the game "MontezumaRevenge". Note: Gym no longer distributes ROMs.

执行

pip install gym[accept-rom-license]

应该就可以了

posted @ 2021-10-11 16:58  ZXYFrank  阅读(827)  评论(0编辑  收藏  举报