- Copy
server.py
andsetup.py
to your project directory, assuming your dash app lies inapp.py
. - Add the requirements that are not in your
requirements.txt
pip install -r requirements.txt
- Change to
setup.py
.- setup(name=’’) -> put the name of your project, change version
- executables targetName -> change to desired exe name.
-
python setup bdist_msi
orpython setup bdist_exe
, I recommend msi.’ - Install the msi on the desired computer.
- Open the exe in a terminal:
c:\program_files\dash_app> dash_app.exe
- Open browser to localhost:8000, (you can change the port in server.py serve parameters.)
5 Likes