Home > OS >  I am trying to learn a simple flask program, but while exporting the app (using the command $ export
I am trying to learn a simple flask program, but while exporting the app (using the command $ export

Time:10-12

I am trying to make a simple flask program, but while exporting the application (using the command $ export FLASK_APP=hello) I am getting the error " 'export is not recognized as an internal or external command, openable program or batch file " Here is my terminal:

c:\Program Files\Python38-32>myproject\Scripts\activate
(myproject) c:\Program Files\Python38-32>export FLASK_APP=hello
'export is not recognized as an internal or external command, openable program or batch file.
(myproject) c:\Program Files\Python38-32>

I have searched in many websites but cannot find the solution. Any help will be appreciated.

CodePudding user response:

You are using Windows. Windows does not use the "export" command to set environment variables. Instead, you need:

set FLASH_APP=hello
  • Related