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
  Extracting content from a website using Python? SandraYokum 0 126 May-14-2024, 02:24 PM
Last Post: SandraYokum
  Retrieve website content using Python? Vadanane 1 1,324 Jan-16-2023, 09:55 AM
Last Post: Axel_Erfurt
  I want to create an automated website in python mkdhrub1 2 2,504 Dec-27-2021, 11:27 PM
Last Post: Larz60+
  new window in separate thread - flask website Notabene 3 3,568 Sep-20-2021, 08:29 AM
Last Post: jamesaarr
  show csv file in flask template.html rr28rizal 8 35,011 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,719 Feb-26-2021, 04:15 PM
Last Post: Alekhya
  Python to build website Methew324 1 2,282 Dec-15-2020, 05:57 AM
Last Post: buran
  Scraping all website text using Python MKMKMKMK 1 2,127 Nov-26-2020, 10:35 PM
Last Post: Larz60+
  My flask website not working properly Aggam 2 2,206 Nov-03-2020, 09:53 AM
Last Post: Aggam
  python 3.7 on windows using flask and flask-sqlalchemy. Alpy 2 4,049 Aug-12-2020, 07:24 PM
Last Post: Alpy

Forum Jump:

User Panel Messages

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