在这段视频 ( https://www.youtube.com/watch?v=Mut_u40Sqz4&t=883s ) 的 1:47:40 处,他输入了以下代码:
!python -m atari_py.import_roms .\ROMS\ROMS
我已经下载了 ROMS 文件夹,它的路径是“current_directory/ROMS/ROMS”,所以我相信这个命令的最后一部分是正确的。但是,当我运行此命令时,出现以下错误:
Traceback (most recent call last):
File "C:\Users\my_username\anaconda3\lib\runpy.py", line 185, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "C:\Users\my_username\anaconda3\lib\runpy.py", line 111, in _get_module_details
__import__(pkg_name)
File "C:\Users\my_username\anaconda3\lib\site-packages\atari_py\__init__.py", line 1, in <module>
from .ale_python_interface import *
File "C:\Users\my_username\anaconda3\lib\site-packages\atari_py\ale_python_interface.py", line 17, in <module>
ale_lib = cdll.LoadLibrary(os.path.join(os.path.dirname(__file__),
File "C:\Users\my_username\anaconda3\lib\ctypes\__init__.py", line 451, in LoadLibrary
return self._dlltype(name)
File "C:\Users\my_username\anaconda3\lib\ctypes\__init__.py", line 373, in __init__
self._handle = _dlopen(self._name, mode)
FileNotFoundError: Could not find module 'C:\Users\my_username\anaconda3\lib\site-packages\atari_py\ale_interface\ale_c.dll' (or one of its dependencies). Try using the full path with constructor syntax.
最终我只想让这段代码工作:
environment_name = 'Breakout-v0'
env = gym.make(environment_name)
有人知道我该怎么做吗?谢谢