Skip to content
site logo mobile

Forum in maintenance, we will back soon 🙂

Need help in instal...
 
Notifications
Clear all

Need help in installing Flask

2 Posts
2 Users
1 Reactions
285 Views
(@coder)
Posts: 1
Member
Premium Member
Pythonista Prodigy Badge
API Entrepreneur
Topic starter
 

Hello there,

Pls help in installation of flask. while running the command "python -m flask run", I am getting this error placed below.

Pls find enclosed the screenshot of my visual code as well for more clarity of my issue. I have installed flask as per the directions given in the flask tutorial in Visual studio code(attached its screenshot also).

 

PS C:\Users\Aarushi Kumar\Desktop\hello_flask> python -m flask run
Usage: python -m flask run [OPTIONS]
Try 'python -m flask run --help' for help.

Error: Could not locate a Flask application. Use the 'flask --app' option, 'FLASK_APP' environment variable, or a 'wsgi.py' or 'app.py' file in the current directory.
PS C:\Users\Aarushi Kumar\Desktop\hello_flask>

visual studio screenshot
flask installation tutorial

 

 

thanks

 
Posted : 10/22/2023 2:20 pm
SSAdvisor
(@ssadvisor)
Posts: 1058
Noble Member
Premium Member
Pythonista Prodigy Badge
Prompt Engineer
API Entrepreneur
Power Member
 

@coder you need to

pip install flask requests

if you're using a virtual environment, which I highly suggest, be sure to activate that environment first.

 

Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack

 
Posted : 10/22/2023 7:07 pm
Share:
build ai agents ad