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]

应该就可以了


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM