正在尝试在windows上安装universe

2024-06-16 11:45:28 发布

您现在位置:Python中文网/ 问答频道 /正文

我想用openAI和{}做一个gamebot。我遵循这个指南https://medium.freecodecamp.org/how-to-build-an-ai-game-bot-using-openai-gym-and-universe-f2eb9bfbb40a上的windows 7。在

我正试着用

git clone https://github.com/openai/universe.git
cd universe
pip install -e .

我得到以下错误:

Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in File "C:\Users\Oskar\AppData\Local\Temp\pip-install-_wewt7fp\fastzbarlight \setup.py", line 49, in proc = subprocess.Popen(['ld', '-liconv'], stderr=subprocess.PIPE) File "c:\users\oskar\appdata\local\programs\python\python36-32\lib\subproc ess.py", line 709, in init restore_signals, start_new_session) File "c:\users\oskar\appdata\local\programs\python\python36-32\lib\subproc ess.py", line 997, in _execute_child startupinfo) FileNotFoundError: [WinError 2] Det går inte att hitta filen

^{pr2}$

命令“python设置.pyegg_info“失败,错误代码为1,位于C:\Users\Oskar\Ap中 pData\Local\Temp\pip安装-\u wewt7fp\fastzbarlight\

我正在使用Visual Code Studio

编辑

当运行程序时,我得到以下错误

Traceback (most recent call last): File "c:\Users\Oskar\Documents\Python\Ai\gamebot.py", line 2, in import universe ModuleNotFoundError: No module named 'universe'

我想我应该用Docker for windows,尽管我不知道怎么用 当尝试将universe导入docker时,我得到:import error:没有名为'健身房基准/监控'


Tags: installpipinpyhttpsgitwindows错误