1.pip install gym==0.19.0 出现下面的问题
解决方案:setuptools版本太高,设置成以下版本即可
pip install --upgrade setuptools==57.5.0
2. pip install gym==0.19.0 出现下面的问题
解决方案:pip版本太高,设置成以下版本即可
C:\Users\XXXX\anaconda3\envs\pytorch\python.exe -m pip install --upgrade pip==23.2.1
3. FileNotFoundError: Could not find module 'C:\Users\XXXXX\anaconda3\envs\pytorch\lib\site-packages\atari_py\ale_interface\ale_c.dll' (or one of its dependencies). Try using the full path with constructor syntax.
下载 ale_c.dll,如下:放入提示的文件夹即可。
链接: https://pan.baidu.com/s/145SsO0Iwn98pkzEAur3F6g?pwd=kwuc 提取码: kwuc
4.NameError: name 'glPushMatrix' is not defined
pyglet版本过高,降低版本即可
pip install pyglet==1.5.27
5. Exception: ROM is missing for breakout, see https://github.com/openai/atari-py#roms for instructions
下载下面的文件。
链接: https://pan.baidu.com/s/1LoapXIptyXccUubS3dILJw?pwd=5ycy 提取码: 5ycy
安装即可:
python -m atari_py.import_roms <path to folder>
6.ERROR: Could not build wheels for gym, which is required to install pyproject.toml-based projects
pip install setuptools==65.5.0
pip install wheel==0.45.0
或者
pip install setuptools==57.5.0
pip install wheel==0.38.4
再安装即可