@echo off :: Check if --skip argument is present set skip_installation=false for %%i in (%*) do ( if "%%i"=="--skip" ( set skip_installation=true ) ) :: Install packages from requirements.txt if not skipped and file exists if "%skip_installation%"=="false" ( if exist requirements.txt ( echo Installing packages from requirements.txt... pip install -r requirements.txt ) else ( echo requirements.txt not found. Skipping installation from file. ) ) else ( echo Skipping installation from requirements.txt... ) :: Remove --skip from the arguments set "args=" for %%i in (%*) do ( if not "%%i"=="--skip" ( set "args=!args! %%i" ) ) set args=%args:~1% :: Install additional packages passed as arguments if "%*" neq "" ( echo Installing additional packages: %* pip install %* ) :: Perbarui requirements.txt echo Updating requirements.txt... pip freeze > requirements.txt echo Done.