![]() ![]() ![]() The easiest way to do it is to download the distribute_setup.py file and run it. On Windows, installation of easy_install is a little bit trickier, but still quite easy. Then in system properties you get environment variables This is how you reach environment variablesĬontrol panel -> system and security -> system -> advanced system setting The name of my file is app.py, give the relevant name as per your file in code line set FLASK_APP=app.pyĪlso if your python path is not set, in windows python is in AppData folder its hidden, so first have to view it and set the correct path under environment variables. Type in these line of codes on command prompt >py -m venv env This is a very basic program to printout a hello, to test flask is working.I would advise to create app.py in a new folder, then locate where the folder is on command prompt 1) create an app.py in Sublime Text or Pycharm, or whatever the ide, and in that app.py have this code from flask import Flask ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |