我正在关注本教程 https://github.com/simoninithomas/Deep_reinforcement_learning_Course/blob/master/Policy%20Gradients/Doom/Doom%20REINFORCE%20Monte%20Carlo%20Policy%20gradients.ipynb使用谷歌Colab。但我跑步时遇到问题from vizdoom import *
这应该启用 Doom 环境。
我尝试执行!pip install vizdoom
,但失败了。
Collecting vizdoom
Using cached https://files.pythonhosted.org/packages/45/15/8053139ab32054bed0b1bf46473f54c5a8d85e5c1d25b23410bc5de913c1/vizdoom-1.1.4.tar.gz
Requirement already satisfied: numpy in /usr/local/lib/python2.7/dist-packages (from vizdoom) (1.14.3)
Building wheels for collected packages: vizdoom
Running setup.py bdist_wheel for vizdoom ... error
Complete output from command /usr/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-GsCBh9/vizdoom/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-tsUxvp --python-tag cp27:
running bdist_wheel
running build
error: [Errno 2] No such file or directory
----------------------------------------
Failed building wheel for vizdoom
Running setup.py clean for vizdoom
Failed to build vizdoom
Installing collected packages: vizdoom
Running setup.py install for vizdoom ... error
Complete output from command /usr/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-GsCBh9/vizdoom/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-N3TTEU/install-record.txt --single-version-externally-managed --compile:
running install
running build
error: [Errno 2] No such file or directory
----------------------------------------
Command "/usr/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-GsCBh9/vizdoom/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-N3TTEU/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-GsCBh9/vizdoom/
该指令表明“您需要下载 vizdoom 并将该文件夹放入存储库中”。但我不清楚如何在 Google Colab 中做到这一点。
非常感谢任何帮助。