gpt-4.1-mini-2025-04-14· OpenAI
WildChat-4.8M (AI2)
.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build pause fix this…
- User
.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build pause
fix this to run pip install lightning
- Assistant
To modify your batch script so that it runs
pip install lightningbefore running your Python script, you can add the pip install command before launching the script.Assuming this is a batch file (
.bat), you can write:bat.\python_embeded\python.exe -m pip install lightning .\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build pauseExplanation:
.\python_embeded\python.exe -m pip install lightningruns pip install using your embedded python interpreter to ensure lightning is installed in the right environment.- Then your original command runs.
pausekeeps the window open after execution.
If you want to ensure that pip installs only if
lightningis not installed, that would require a more complex script with error handling, but the above is the simplest fix.