Your screenshot shows this error:
Python was not found...
That means Python is not installed (or not on PATH) yet.
- Download Python 3.11+ from: https://www.python.org/downloads/windows/
- During install, check:
Add python.exe to PATH - Re-open Command Prompt after install.
Use either command (depending on your setup):
py --versionor
python --versionIf both fail, disable the Microsoft Store alias:
- Settings → Apps → Advanced app settings → App execution aliases
- Turn off aliases for
python.exeandpython3.exe
py -m pip install -r requirements.txt
py app.pyThen open:
python3 -m pip install -r requirements.txt
python3 app.pyThen open:
- This app binds to
0.0.0.0and readsPORT(defaults to3000) so side-preview panes can detect it. - In your screenshot, one line ran as
python app.pypython -m pip ...which is two commands accidentally merged. Run one command per line.
If you are using Codex in a web chat UI, there is usually no built-in live app host/preview panel for this repo by default.
What Codex can do:
- write/edit code
- run terminal commands in its environment
What Codex web chat usually cannot do automatically:
- open a persistent browser preview of your Flask app inside your own chat window
So if you want to interact with the app visually, you still need one of these:
- run it locally (
py app.py/python3 app.py) - run it on a hosted dev environment (Replit, Render, Railway, etc.)