如何在Windows上安装OpenAI Universe而不出现错误代码1?

10
当我尝试通过Python pip在我的Windows机器上安装OpenAi Universe时,我会得到以下堆栈跟踪:
Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\Me\AppData\Local\Temp\pip-build-yjf_mrwx\fastzbarlight\setup.py", line 49, in <module>
        proc = subprocess.Popen(['ld', '-liconv'], stderr=subprocess.PIPE)
      File "E:\Python3.5.2\lib\subprocess.py", line 947, in __init__
        restore_signals, start_new_session)
      File "E:\Python3.5.2\lib\subprocess.py", line 1224, in _execute_child
        startupinfo)
    FileNotFoundError: [WinError 2] The system cannot find the file specified

还有这个错误代码:

Command "python setup.py egg_info" failed with error code 1 in C:\Users\Me\AppData\Local\Temp\pip-build-yjf_mrwx\fastzbarlight\

我尝试了这里提到的所有方法。我还阅读了文档,找到了以下内容:
"While we don’t officially support Windows, we expect our code to be very close to working there. We’d be happy to take pull requests that take our Windows compatibility to 100%."

所以我猜可能不起作用,但我认为它应该能够运行。

2个回答

1

目前,Windows系统不支持官方的Universe。但是,您可以使用Windows的Linux子系统来安装Gym和Universe而没有真正的问题。基本上,您需要按照这些指示进行操作,这些指示是从this comment by MaxOSmith from Gym on GitHub改编而来的(我也能够使用它们来安装Universe):

  1. Update to the latest version of Windows (>version 1607, "Anniversary Update").

  2. Enable Windows Subsystem for Linux (WSL).

  3. Open cmd, run bash.

  4. Install Python, Gym and Universe (using sudo, and NOT PIP). Also make sure to look at the system requirements and follow the typical Universe Linux install, aka get golang etc.

  5. Install vcXsrv, and run it (you should just have a little tray icon). We install this because WSL is not supported and it can cause some crazy graphical errors to occur.

  6. In bash, run

    export DISPLAY=:0
    

    Now, when you run it you should get a display to pop-up, there may be issues related to graphics drivers. Sadly, this is where the instructions diverge if you don't have an NVIDIA graphics card.

  7. Get the drivers:

    sudo apt-get install nvidia-319 nvidia-settings-319 nvidia-prime
    
  8. Play with it.

作为一个旁注,我计划开始为Universe做出贡献,我想做的第一件事就是让它在Windows上原生运行。

抱歉,稍等一下,我需要再找一下它。 - Abeltensor
是的,我也认为如此,但我更喜欢在Windows上使用虚拟机而不是Bash。 - creativecreatorormaybenot
如果您能在Windows上本地成功运行Universe,那么在这里分享一下就好了! :) - creativecreatorormaybenot
目前来看,显然 Universe 不适用于 Windows... - Hermes Morales

0

我对这个领域还很陌生,但我尝试了很多谷歌搜索,我认为我从一个论坛找到了一个对我有用的答案,它建议注释掉#'fastzbarlight>=0.0.13',然后运行pip命令,然后它就可以工作了。那个包是用于QR码读取的...所以除非你需要那个选项但需要在Windows环境中测试...可以试试...

这是链接 Git_hub论坛链接--openai/universe/issues


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接