Not able to run python file which has a import statement for flask, installed via




the same file i am able to run from console using python but this is not causing my application to host on url


You’re probably serving it on the wrong IP and port. You’ll want to add import os to the top of your file then change your last two lines to be:

if __name__ == '__main__':'IP', ''),port=int(os.getenv('PORT', 8080)), debug=True)