Python Forum
Create .exe file for Python flask website.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Create .exe file for Python flask website.
#1
Please see below steps followed to create .exe file.
1) Ran pyinstaller App.py in cmd at folder location where App.py file is located
2) Pyinstaller created .spec file at App.py location, build folder(App.exe) file and dist folder(this is empty)
3) Clicked on App.exe under build folder file to launch website. Nothing happens

What additional changes needs to be done in App.spec file to launch .exe ? or Am I missing anything here? Please help.
Reply
#2
I have never heard of making an executable from a Flask application.
However, here's a blog on exactly that subject here: https://elc.github.io/posts/executable-f...installer/
Reply
#3
I had gone through this solution before posting this thread. It doesn't work for me.
Thanks for the help Larz60+.
Reply
#4
I'd convert mine to EXE and deploy is over a host. Just get "Auto Py To Exe" application. Download it locally. Open the app, insert your project location, do some setup if you want, and then click "Convert". There you go. Flask in EXE format. Plug-in anywhere that you like without the need to have Python Interpreter.
Reply
#5
https://www.youtube.com/watch?v=j0Nm0AfJDo0
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Retrieve website content using Python? Vadanane 1 1,196 Jan-16-2023, 09:55 AM
Last Post: Axel_Erfurt
  I want to create an automated website in python mkdhrub1 2 2,312 Dec-27-2021, 11:27 PM
Last Post: Larz60+
  new window in separate thread - flask website Notabene 3 3,373 Sep-20-2021, 08:29 AM
Last Post: jamesaarr
  show csv file in flask template.html rr28rizal 8 34,524 Apr-12-2021, 09:24 AM
Last Post: adamabusamra
  Login and download an exported csv file within a ribbon/button in a website Alekhya 0 2,616 Feb-26-2021, 04:15 PM
Last Post: Alekhya
  Python to build website Methew324 1 2,195 Dec-15-2020, 05:57 AM
Last Post: buran
  Scraping all website text using Python MKMKMKMK 1 2,051 Nov-26-2020, 10:35 PM
Last Post: Larz60+
  My flask website not working properly Aggam 2 2,111 Nov-03-2020, 09:53 AM
Last Post: Aggam
  python 3.7 on windows using flask and flask-sqlalchemy. Alpy 2 3,944 Aug-12-2020, 07:24 PM
Last Post: Alpy
  flask How to output stderr and exceptions to log file umen 4 4,698 Jun-20-2020, 06:11 AM
Last Post: umen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020