无法安装 gym-retro:subprocess.CalledProcessError for cmake

Unable to install gym-retro: subprocess.CalledProcessError for cmake

这是另一个 pip 安装错误(那些让我抓狂)。我在 Windows 8.1 和 python 3.7。我试图通过 pip 安装 gym-retro(我已经安装了 gym)并不断遇到子进程错误。我想是因为我没有cmake之类的,所以我去cmake网站安装了cmake,并检查了"add to PATH"选项。之后,我尝试再次安装它。同样的问题。我也重新启动了命令提示符。我试图在网上寻求帮助,但似乎无济于事。我听从了运行命令

pip install gym-retro > output.txt

收集输出并在此处 post。我把它剥离了,这样看起来就不会痛苦了。

Building wheels for collected packages: gym-retro
  Building wheel for gym-retro (setup.py): started
  Building wheel for gym-retro (setup.py): finished with status 'error'
  Complete output from command c:\users\evgeny\appdata\local\programs\python\python37-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\Users\Evgeny\AppData\Local\Temp\pip-install-t3ctdvi3\gym-retro\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 C:\Users\Evgeny\AppData\Local\Temp\pip-wheel-q1w5imfc --python-tag cp37:
  use_scm_version False
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win32-3.7
  creating build\lib.win32-3.7\retro
  copying retro\enums.py -> build\lib.win32-3.7\retro
  copying retro\retro_env.py -> build\lib.win32-3.7\retro
  copying retro\__init__.py -> build\lib.win32-3.7\retro
  creating build\lib.win32-3.7\retro\data
  copying retro\data\__init__.py -> build\lib.win32-3.7\retro\data
  creating build\lib.win32-3.7\retro\data\stable
  copying retro\data\stable\__init__.py -> build\lib.win32-3.7\retro\data\stable

</skipped lots of text here/>

    running build_ext
    -- Submodules seem to be missing. Attempting to clone now.
    CMake Error at CMakeLists.txt:13 (message):
      Failed to check out submodules.  Aborting.


    -- Configuring incomplete, errors occurred!
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\Evgeny\AppData\Local\Temp\pip-install-t3ctdvi3\gym-retro\setup.py", line 92, in <module>
        **kwargs
      File "c:\users\evgeny\appdata\local\programs\python\python37-32\lib\site-packages\setuptools\__init__.py", line 131, in setup
        return distutils.core.setup(**attrs)
      File "c:\users\evgeny\appdata\local\programs\python\python37-32\lib\distutils\core.py", line 148, in setup
        dist.run_commands()
      File "c:\users\evgeny\appdata\local\programs\python\python37-32\lib\distutils\dist.py", line 966, in run_commands
        self.run_command(cmd)
      File "c:\users\evgeny\appdata\local\programs\python\python37-32\lib\distutils\dist.py", line 985, in run_command
        cmd_obj.run()
      File "c:\users\evgeny\appdata\local\programs\python\python37-32\lib\site-packages\setuptools\command\install.py", line 61, in run
        return orig.install.run(self)
      File "c:\users\evgeny\appdata\local\programs\python\python37-32\lib\distutils\command\install.py", line 545, in run
        self.run_command('build')
      File "c:\users\evgeny\appdata\local\programs\python\python37-32\lib\distutils\cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "c:\users\evgeny\appdata\local\programs\python\python37-32\lib\distutils\dist.py", line 985, in run_command
        cmd_obj.run()
      File "c:\users\evgeny\appdata\local\programs\python\python37-32\lib\distutils\command\build.py", line 135, in run
        self.run_command(cmd_name)
      File "c:\users\evgeny\appdata\local\programs\python\python37-32\lib\distutils\cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "c:\users\evgeny\appdata\local\programs\python\python37-32\lib\distutils\dist.py", line 985, in run_command
        cmd_obj.run()
      File "C:\Users\Evgeny\AppData\Local\Temp\pip-install-t3ctdvi3\gym-retro\setup.py", line 53, in run
        subprocess.check_call([cmake_exe, '.', '-G', 'Unix Makefiles', build_type, pyext_suffix, pylib_dir, python_executable])
      File "c:\users\evgeny\appdata\local\programs\python\python37-32\lib\subprocess.py", line 341, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['C:\Users\Evgeny\AppData\Local\Programs\Python\Python37-32\Scripts\cmake.exe', '.', '-G', 'Unix Makefiles', '', '-DPYEXT_SUFFIX:STRING=.cp37-win32.pyd', '-DPYLIB_DIRECTORY:PATH=build\lib.win32-3.7', '-DPYTHON_EXECUTABLE:STRING=c:\users\evgeny\appdata\local\programs\python\python37-32\python.exe']' returned non-zero exit status 1.

感谢您的回答!他们都帮了我大忙!我喜欢他们写的伟大的细节和爱! /s

>.< 我找到的唯一解决方案是在虚拟机上安装 Ubuntu 并在那里安装(对于将来遇到此问题的任何人)。