You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My issues: it still shows no flask module even after activating venv and installing flask and after flask run still shows the module not installed. Below is my problem: #25153
bash
Copy
Edit
PS C:\Users\vince> & C:/Users/vince/AppData/Local/Microsoft/WindowsApps/python3.13.exe ...
But Flask was likely installed only inside your virtual environment, not in your global Python installation at python3.13.exe.
✅ How to Fix It:
Activate your virtual environment:
Make sure you're in the project directory and run:
powershell
Copy
Edit
.\venv\Scripts\activate
You mentioned you’ve done this — great!
Use the virtual environment's Python executable:
Instead of this:
powershell
Copy
Edit
& C:/Users/vince/AppData/Local/Microsoft/WindowsApps/python3.13.exe c:/Users/vince/2b_app/2b_app.py
You should run:
powershell
Copy
Edit
python c:/Users/vince/2b_app/2b_app.py
✅ This ensures the virtual environment's version of Python (which has Flask) is used.
Double-check Flask is installed in your venv:
After activation, run:
bash
Copy
Edit
pip list
Ensure Flask appears in the list.
Fix the typo in your code (optional but important):
In your 2b_app.py, line 1 has:
python
Copy
Edit
From flask import Flask, render_template
Make sure it’s lowercase from, not From: