source ~/.bashrc
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]
应该就可以了