准備工作
- 下載最新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]
應該就可以了
