Thank you for sharing this. I have tried the NSSM answer you shared but this isn't deployment friendly as is. It would need the conda/venv to be set up on the machine as well as the source code. Perhaps, using the server executable along with nssm might be another option in case the server needs to be deployed to several machines (which is my use case) as a service on local network.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Manpreet Singh Minhas
Manpreet Singh Minhas

Written by Manpreet Singh Minhas

DL/CV Research Engineer | MASc UWaterloo | Follow and subscribe for DL/ML content | https://github.com/msminhas93 | https://www.linkedin.com/in/msminhas93

Responses (1)

Write a response

NSSM + PyInstaller sounds good. I should mention that lately I'm having a better experience with cx_Freeze. So, in case PyInstaller goes haywire (happened to me a couple of times), you should give it a try.