2016-12-16 83 views
9

當我嘗試通過Python點子我的Windows機器上安裝OpenAi Universe我獲得以下堆棧跟蹤:如何安裝OpenAI Universe而不在Windows上獲取錯誤代碼1?

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\ 

我什麼都試過提到here。我也通讀了文件,發現這個:

"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%." 

所以我想這可能只是不起作用,但我認爲它應該工作。

回答

1

目前,Universe並未在Windows機器上正式支持。但是,您可以使用Windows的Linux子系統來安裝Gym和Universe,而不存在任何實際問題。基本上,所有你需要做的就是按照改編自this comment by MaxOSmith from Gym on GitHub,這些說明(我可以用它來安裝宇宙以及):

  1. 更新到Windows的最新版本(>版1607, 「週年紀念更新」)。

  2. 啓用適用於Linux(WSL)的Windows子系統。

  3. 打開cmd,運行bash。

  4. 安裝Python,Gym和Universe(使用sudo,而不是PIP)。還請確保查看系統要求並遵循典型的Universe Linux安裝,又名golang等。

  5. 安裝vcXsrv並運行它(您應該只有一個小托盤圖標)。我們安裝這個,因爲WSL不被支持,它可能會導致一些瘋狂的圖形錯誤發生。

  6. 在bash,運行

    export DISPLAY=:0 
    

    現在,當你運行它,你應該得到一個顯示彈出,有可能是與顯卡驅動的問題。不幸的是,如果你沒有NVIDIA顯卡,這就是指令分歧的地方。

  7. 獲取驅動程序:

    sudo apt-get install nvidia-319 nvidia-settings-319 nvidia-prime 
    
  8. 播放它。

順便說一句,我打算開始促進宇宙和我想做的第一件事情就是讓它在Windows天真地工作。

+0

秒,將不得不再次找到它。 – Abeltensor

+0

是的,我提到過,但我更喜歡在Windows上的Ubuntu上使用Bash的虛擬機。 – creativecreatorormaybenot

+0

如果你曾經在Windows上使用過本地工作的Universe,在這裏告訴它會很高興! :) – creativecreatorormaybenot

0

我是新來這個域名,但我試着用Google搜索了很多,我想我發現從它暗示評論#'fastzbarlight>=0.0.13',並運行PIP命令,然後它的工作座談會爲我工作的一個答案。該軟件包是QR碼讀數....所以,除非你想要的選項,但需要在Windows環境下測試......試試看....

這是鏈接 Git_hub forum link--openai/universe/issues