Install VS Code and python
UVS Code : sing Microsoft installer from the page: https://code.visualstudio.com/download
Python: https://www.python.org › downloads
step 1 : Set up new VSCode project
- Create a folder Mystore in documents
- Open that folder in vscode
Step 2:open terminal in terminal -> new terminal
- click on + sign
- choose cmd for windows
- type command python -m venv .venv

Now you all set with virtual enviornment
Note: Make sure next you enable the Microsoft extension for python by clicking ctr+shift+x
step 3: Now setting interpreter
type ctrl+shift+p , search interpreter , choose python recommended version
step 4: Install flask
python -m pip install flask
Note: if you unable to find the installed flask libs under venv , possibly it is installed in your python installation folder. If so follow below.
(.venv) C:\Users\kumar\Documents\2026\Minimal execution plan\mypthon\Mystore>rmdir /s /q .venv
(.venv) C:\Users\kumar\Documents\2026\Minimal execution plan\mypthon\Mystore>python -m venv .venv
(.venv) C:\Users\kumar\Documents\2026\Minimal execution plan\mypthon\Mystore>.venv\Scripts\activate
(.venv) C:\Users\kumar\Documents\2026\Minimal execution plan\mypthon\Mystore>python -m pip install flask
Step 5: Run flask
(.venv) C:\Users\kumar\Documents\2026\Minimal execution plan\mypthon\Mystore>flask run
- Debug mode: off WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. ** * Running on http://127.0.0.1:5000 Press CTRL+C to quit**
As you see above flask server started in the above URL.
Step 6: Stop flask
give ctl+c


Top comments (0)