Files
Auto-GPT/autogpts/autogpt/run.bat
Reinier van der Leer b21d68a8ab Migrate AutoGPT agent to poetry (#5219)
Inspired by #1102

* Migrate AutoGPT agent to poetry

  Co-authored-by: rickythefox <richard@ginzburg.se>

* Rewrite automatic dependency check (check_requirements.py) for poetry

* Sort dependencies

* Add instructions for poetry to README
2023-09-15 05:18:44 +02:00

28 lines
499 B
Batchfile

@echo off
setlocal enabledelayedexpansion
:FindPythonCommand
for %%A in (python python3) do (
where /Q %%A
if !errorlevel! EQU 0 (
set "PYTHON_CMD=%%A"
goto :Found
)
)
echo Python not found. Please install Python.
pause
exit /B 1
:Found
%PYTHON_CMD% scripts/check_requirements.py
if errorlevel 1 (
echo
%PYTHON_CMD% -m poetry install --without dev
echo
echo Finished installing packages! Starting AutoGPT...
echo
)
%PYTHON_CMD% -m autogpt %*
pause