Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
first edition:
pyinstaller --onefile --add-data ".;." -r "BDays.txt" app.py
second revision: solved by adding
import webbrowser
webbrowser.open('https://docs.python.org')
run on console C:\python27\python -m pip install pyinstaller
then this C:\python27\scripts\pyinstaller --onefile flask_exe.py
which will create an executable (which won't work) but more importantly it will create a file flask_exe.spec which tells pyinstaller how to create an executable
we need to tell pyinstaller how to create stuff it doesn't understand by doing the following 3 changes in our spec file
after making these changes restart pyinstaller c:\python27\scripts\pyinstaller flask_exe .spec
this will create a new dist folder with flask_exe.exe included, then run flask_exe.exe
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question