How to bundle python flask application into a standalone executable.











up vote
1
down vote

favorite












I am developing a number of python application for my internal users. We have a framework developed using a c# and wpf which every user have on their system. Now for the users to access the python application from that framework one option was to ask each users to install python in there system which is not possible. After some research in Google I came across the python freezer libraries



I was able to bundle or freeze a tensor flow , django Matlab application and host the same in our framework without asking user to install python by using pyinstaller. But for flask application I cannot find a proper freezer.



Is there any freezer for flask application. My requirements is to create a standalone exe for my flask application . I have both python 3 and python 2 in my build sever.










share|improve this question






















  • Why have you done this as a web app at all, if every user needs to install it on their system?
    – Daniel Roseman
    Nov 10 at 15:00










  • Currently we are not using docker and cloud in our firm . And we have lot of users which develope their own application by hiring external developers. But once they develop their app , to get it to production they have to wait for months. So we need to support all type of python, .net , spa etc.. app in our framework .. it's like I need to be ready for all type of application. That's why. We don't have control on what type of application the users will give us. And this will be a temporary solution.
    – anoop
    Nov 10 at 15:17










  • finnaly found the solution. . Ended up using cx_freeze and after some changes was able to make flask working
    – anoop
    12 hours ago















up vote
1
down vote

favorite












I am developing a number of python application for my internal users. We have a framework developed using a c# and wpf which every user have on their system. Now for the users to access the python application from that framework one option was to ask each users to install python in there system which is not possible. After some research in Google I came across the python freezer libraries



I was able to bundle or freeze a tensor flow , django Matlab application and host the same in our framework without asking user to install python by using pyinstaller. But for flask application I cannot find a proper freezer.



Is there any freezer for flask application. My requirements is to create a standalone exe for my flask application . I have both python 3 and python 2 in my build sever.










share|improve this question






















  • Why have you done this as a web app at all, if every user needs to install it on their system?
    – Daniel Roseman
    Nov 10 at 15:00










  • Currently we are not using docker and cloud in our firm . And we have lot of users which develope their own application by hiring external developers. But once they develop their app , to get it to production they have to wait for months. So we need to support all type of python, .net , spa etc.. app in our framework .. it's like I need to be ready for all type of application. That's why. We don't have control on what type of application the users will give us. And this will be a temporary solution.
    – anoop
    Nov 10 at 15:17










  • finnaly found the solution. . Ended up using cx_freeze and after some changes was able to make flask working
    – anoop
    12 hours ago













up vote
1
down vote

favorite









up vote
1
down vote

favorite











I am developing a number of python application for my internal users. We have a framework developed using a c# and wpf which every user have on their system. Now for the users to access the python application from that framework one option was to ask each users to install python in there system which is not possible. After some research in Google I came across the python freezer libraries



I was able to bundle or freeze a tensor flow , django Matlab application and host the same in our framework without asking user to install python by using pyinstaller. But for flask application I cannot find a proper freezer.



Is there any freezer for flask application. My requirements is to create a standalone exe for my flask application . I have both python 3 and python 2 in my build sever.










share|improve this question













I am developing a number of python application for my internal users. We have a framework developed using a c# and wpf which every user have on their system. Now for the users to access the python application from that framework one option was to ask each users to install python in there system which is not possible. After some research in Google I came across the python freezer libraries



I was able to bundle or freeze a tensor flow , django Matlab application and host the same in our framework without asking user to install python by using pyinstaller. But for flask application I cannot find a proper freezer.



Is there any freezer for flask application. My requirements is to create a standalone exe for my flask application . I have both python 3 and python 2 in my build sever.







python python-3.x python-2.7 pyinstaller






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 10 at 14:47









anoop

104




104












  • Why have you done this as a web app at all, if every user needs to install it on their system?
    – Daniel Roseman
    Nov 10 at 15:00










  • Currently we are not using docker and cloud in our firm . And we have lot of users which develope their own application by hiring external developers. But once they develop their app , to get it to production they have to wait for months. So we need to support all type of python, .net , spa etc.. app in our framework .. it's like I need to be ready for all type of application. That's why. We don't have control on what type of application the users will give us. And this will be a temporary solution.
    – anoop
    Nov 10 at 15:17










  • finnaly found the solution. . Ended up using cx_freeze and after some changes was able to make flask working
    – anoop
    12 hours ago


















  • Why have you done this as a web app at all, if every user needs to install it on their system?
    – Daniel Roseman
    Nov 10 at 15:00










  • Currently we are not using docker and cloud in our firm . And we have lot of users which develope their own application by hiring external developers. But once they develop their app , to get it to production they have to wait for months. So we need to support all type of python, .net , spa etc.. app in our framework .. it's like I need to be ready for all type of application. That's why. We don't have control on what type of application the users will give us. And this will be a temporary solution.
    – anoop
    Nov 10 at 15:17










  • finnaly found the solution. . Ended up using cx_freeze and after some changes was able to make flask working
    – anoop
    12 hours ago
















Why have you done this as a web app at all, if every user needs to install it on their system?
– Daniel Roseman
Nov 10 at 15:00




Why have you done this as a web app at all, if every user needs to install it on their system?
– Daniel Roseman
Nov 10 at 15:00












Currently we are not using docker and cloud in our firm . And we have lot of users which develope their own application by hiring external developers. But once they develop their app , to get it to production they have to wait for months. So we need to support all type of python, .net , spa etc.. app in our framework .. it's like I need to be ready for all type of application. That's why. We don't have control on what type of application the users will give us. And this will be a temporary solution.
– anoop
Nov 10 at 15:17




Currently we are not using docker and cloud in our firm . And we have lot of users which develope their own application by hiring external developers. But once they develop their app , to get it to production they have to wait for months. So we need to support all type of python, .net , spa etc.. app in our framework .. it's like I need to be ready for all type of application. That's why. We don't have control on what type of application the users will give us. And this will be a temporary solution.
– anoop
Nov 10 at 15:17












finnaly found the solution. . Ended up using cx_freeze and after some changes was able to make flask working
– anoop
12 hours ago




finnaly found the solution. . Ended up using cx_freeze and after some changes was able to make flask working
– anoop
12 hours ago

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53240082%2fhow-to-bundle-python-flask-application-into-a-standalone-executable%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53240082%2fhow-to-bundle-python-flask-application-into-a-standalone-executable%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Full-time equivalent

さくらももこ

13 indicted, 8 arrested in Calif. drug cartel investigation