Installing python on Azure App Service — which tools can I use?











up vote
0
down vote

favorite












I created an App Service on Linux in Azure portal, hoping to use if as a managed Node.js server. A simple test app works but when coming to install bip32, or other web3 related packages I get the following error:



gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.


The obvious next step is to install Python, but the machine doesn't have any of the usual tools used for installing. No apt-get. No yum.



Any other options I could use for installing packages?










share|improve this question




















  • 2




    It seems that there is no python runtime for it. Maybe you can choose the python runtime when you create the web app on Azure.
    – Charles Xu
    Nov 19 at 2:29










  • @CharlesXu-MSFT I need to run a Node.js app on it. So I would need to install npm. But I'm unable to install anything. No apt. No yum. No rpm.
    – Eddy
    Nov 19 at 6:41






  • 1




    Azure Web App has the built-in runtime for NodeJS. You can try to use it.
    – Charles Xu
    Nov 19 at 7:17










  • You can specify the NodeJS runtime version by setting an application setting in the App Service on the Portal. Check out this link for supported version and more info. Link
    – technogeek1995
    Nov 20 at 19:45















up vote
0
down vote

favorite












I created an App Service on Linux in Azure portal, hoping to use if as a managed Node.js server. A simple test app works but when coming to install bip32, or other web3 related packages I get the following error:



gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.


The obvious next step is to install Python, but the machine doesn't have any of the usual tools used for installing. No apt-get. No yum.



Any other options I could use for installing packages?










share|improve this question




















  • 2




    It seems that there is no python runtime for it. Maybe you can choose the python runtime when you create the web app on Azure.
    – Charles Xu
    Nov 19 at 2:29










  • @CharlesXu-MSFT I need to run a Node.js app on it. So I would need to install npm. But I'm unable to install anything. No apt. No yum. No rpm.
    – Eddy
    Nov 19 at 6:41






  • 1




    Azure Web App has the built-in runtime for NodeJS. You can try to use it.
    – Charles Xu
    Nov 19 at 7:17










  • You can specify the NodeJS runtime version by setting an application setting in the App Service on the Portal. Check out this link for supported version and more info. Link
    – technogeek1995
    Nov 20 at 19:45













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I created an App Service on Linux in Azure portal, hoping to use if as a managed Node.js server. A simple test app works but when coming to install bip32, or other web3 related packages I get the following error:



gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.


The obvious next step is to install Python, but the machine doesn't have any of the usual tools used for installing. No apt-get. No yum.



Any other options I could use for installing packages?










share|improve this question















I created an App Service on Linux in Azure portal, hoping to use if as a managed Node.js server. A simple test app works but when coming to install bip32, or other web3 related packages I get the following error:



gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.


The obvious next step is to install Python, but the machine doesn't have any of the usual tools used for installing. No apt-get. No yum.



Any other options I could use for installing packages?







node.js linux azure azure-web-sites






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 19 at 7:18









Charles Xu

2,688126




2,688126










asked Nov 18 at 16:24









Eddy

1,32443656




1,32443656








  • 2




    It seems that there is no python runtime for it. Maybe you can choose the python runtime when you create the web app on Azure.
    – Charles Xu
    Nov 19 at 2:29










  • @CharlesXu-MSFT I need to run a Node.js app on it. So I would need to install npm. But I'm unable to install anything. No apt. No yum. No rpm.
    – Eddy
    Nov 19 at 6:41






  • 1




    Azure Web App has the built-in runtime for NodeJS. You can try to use it.
    – Charles Xu
    Nov 19 at 7:17










  • You can specify the NodeJS runtime version by setting an application setting in the App Service on the Portal. Check out this link for supported version and more info. Link
    – technogeek1995
    Nov 20 at 19:45














  • 2




    It seems that there is no python runtime for it. Maybe you can choose the python runtime when you create the web app on Azure.
    – Charles Xu
    Nov 19 at 2:29










  • @CharlesXu-MSFT I need to run a Node.js app on it. So I would need to install npm. But I'm unable to install anything. No apt. No yum. No rpm.
    – Eddy
    Nov 19 at 6:41






  • 1




    Azure Web App has the built-in runtime for NodeJS. You can try to use it.
    – Charles Xu
    Nov 19 at 7:17










  • You can specify the NodeJS runtime version by setting an application setting in the App Service on the Portal. Check out this link for supported version and more info. Link
    – technogeek1995
    Nov 20 at 19:45








2




2




It seems that there is no python runtime for it. Maybe you can choose the python runtime when you create the web app on Azure.
– Charles Xu
Nov 19 at 2:29




It seems that there is no python runtime for it. Maybe you can choose the python runtime when you create the web app on Azure.
– Charles Xu
Nov 19 at 2:29












@CharlesXu-MSFT I need to run a Node.js app on it. So I would need to install npm. But I'm unable to install anything. No apt. No yum. No rpm.
– Eddy
Nov 19 at 6:41




@CharlesXu-MSFT I need to run a Node.js app on it. So I would need to install npm. But I'm unable to install anything. No apt. No yum. No rpm.
– Eddy
Nov 19 at 6:41




1




1




Azure Web App has the built-in runtime for NodeJS. You can try to use it.
– Charles Xu
Nov 19 at 7:17




Azure Web App has the built-in runtime for NodeJS. You can try to use it.
– Charles Xu
Nov 19 at 7:17












You can specify the NodeJS runtime version by setting an application setting in the App Service on the Portal. Check out this link for supported version and more info. Link
– technogeek1995
Nov 20 at 19:45




You can specify the NodeJS runtime version by setting an application setting in the App Service on the Portal. Check out this link for supported version and more info. Link
– technogeek1995
Nov 20 at 19:45












1 Answer
1






active

oldest

votes

















up vote
1
down vote













For your issue, you could have something misunderstand. The Azure Web App Service just allow you to manage your application, do not allow you to change the running environment in the Service Plan. For example, like that, you want to install tools such as apt and npm in it.



Azure provides some built-in runtime to Web App. Just like Node.js x, Python x, etc. You can choose an appropriate one to use. Even if there is no one suitable for you, you can make your application into a Docker image and create the Web App from it. Of curse, you should make sure your application can work well in the image and you can install the tools which you need. For more details, see Use a custom Docker image for Web App for Containers. Hope this will be helpful to you.






share|improve this answer





















  • I created a machine with Python runtime (no option for choosing 2.7, which is what my packages need) and there was no npm on the machine. I played around a bit trying to install it but honestly this process doesn't inspire confidence.
    – Eddy
    Nov 19 at 9:00










  • Perhaps, you can try the custom Docker image, you can install python 2.7 in it in the base image ubuntu or others.
    – Charles Xu
    Nov 19 at 9:06










  • @Eddy Do you solve the issue?
    – Charles Xu
    Nov 22 at 9:50










  • I moved on to other options.
    – Eddy
    Nov 23 at 10:38










  • @Eddy So what choice do you move to?
    – Charles Xu
    Nov 24 at 2:46











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%2f53363025%2finstalling-python-on-azure-app-service-which-tools-can-i-use%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote













For your issue, you could have something misunderstand. The Azure Web App Service just allow you to manage your application, do not allow you to change the running environment in the Service Plan. For example, like that, you want to install tools such as apt and npm in it.



Azure provides some built-in runtime to Web App. Just like Node.js x, Python x, etc. You can choose an appropriate one to use. Even if there is no one suitable for you, you can make your application into a Docker image and create the Web App from it. Of curse, you should make sure your application can work well in the image and you can install the tools which you need. For more details, see Use a custom Docker image for Web App for Containers. Hope this will be helpful to you.






share|improve this answer





















  • I created a machine with Python runtime (no option for choosing 2.7, which is what my packages need) and there was no npm on the machine. I played around a bit trying to install it but honestly this process doesn't inspire confidence.
    – Eddy
    Nov 19 at 9:00










  • Perhaps, you can try the custom Docker image, you can install python 2.7 in it in the base image ubuntu or others.
    – Charles Xu
    Nov 19 at 9:06










  • @Eddy Do you solve the issue?
    – Charles Xu
    Nov 22 at 9:50










  • I moved on to other options.
    – Eddy
    Nov 23 at 10:38










  • @Eddy So what choice do you move to?
    – Charles Xu
    Nov 24 at 2:46















up vote
1
down vote













For your issue, you could have something misunderstand. The Azure Web App Service just allow you to manage your application, do not allow you to change the running environment in the Service Plan. For example, like that, you want to install tools such as apt and npm in it.



Azure provides some built-in runtime to Web App. Just like Node.js x, Python x, etc. You can choose an appropriate one to use. Even if there is no one suitable for you, you can make your application into a Docker image and create the Web App from it. Of curse, you should make sure your application can work well in the image and you can install the tools which you need. For more details, see Use a custom Docker image for Web App for Containers. Hope this will be helpful to you.






share|improve this answer





















  • I created a machine with Python runtime (no option for choosing 2.7, which is what my packages need) and there was no npm on the machine. I played around a bit trying to install it but honestly this process doesn't inspire confidence.
    – Eddy
    Nov 19 at 9:00










  • Perhaps, you can try the custom Docker image, you can install python 2.7 in it in the base image ubuntu or others.
    – Charles Xu
    Nov 19 at 9:06










  • @Eddy Do you solve the issue?
    – Charles Xu
    Nov 22 at 9:50










  • I moved on to other options.
    – Eddy
    Nov 23 at 10:38










  • @Eddy So what choice do you move to?
    – Charles Xu
    Nov 24 at 2:46













up vote
1
down vote










up vote
1
down vote









For your issue, you could have something misunderstand. The Azure Web App Service just allow you to manage your application, do not allow you to change the running environment in the Service Plan. For example, like that, you want to install tools such as apt and npm in it.



Azure provides some built-in runtime to Web App. Just like Node.js x, Python x, etc. You can choose an appropriate one to use. Even if there is no one suitable for you, you can make your application into a Docker image and create the Web App from it. Of curse, you should make sure your application can work well in the image and you can install the tools which you need. For more details, see Use a custom Docker image for Web App for Containers. Hope this will be helpful to you.






share|improve this answer












For your issue, you could have something misunderstand. The Azure Web App Service just allow you to manage your application, do not allow you to change the running environment in the Service Plan. For example, like that, you want to install tools such as apt and npm in it.



Azure provides some built-in runtime to Web App. Just like Node.js x, Python x, etc. You can choose an appropriate one to use. Even if there is no one suitable for you, you can make your application into a Docker image and create the Web App from it. Of curse, you should make sure your application can work well in the image and you can install the tools which you need. For more details, see Use a custom Docker image for Web App for Containers. Hope this will be helpful to you.







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 19 at 8:21









Charles Xu

2,688126




2,688126












  • I created a machine with Python runtime (no option for choosing 2.7, which is what my packages need) and there was no npm on the machine. I played around a bit trying to install it but honestly this process doesn't inspire confidence.
    – Eddy
    Nov 19 at 9:00










  • Perhaps, you can try the custom Docker image, you can install python 2.7 in it in the base image ubuntu or others.
    – Charles Xu
    Nov 19 at 9:06










  • @Eddy Do you solve the issue?
    – Charles Xu
    Nov 22 at 9:50










  • I moved on to other options.
    – Eddy
    Nov 23 at 10:38










  • @Eddy So what choice do you move to?
    – Charles Xu
    Nov 24 at 2:46


















  • I created a machine with Python runtime (no option for choosing 2.7, which is what my packages need) and there was no npm on the machine. I played around a bit trying to install it but honestly this process doesn't inspire confidence.
    – Eddy
    Nov 19 at 9:00










  • Perhaps, you can try the custom Docker image, you can install python 2.7 in it in the base image ubuntu or others.
    – Charles Xu
    Nov 19 at 9:06










  • @Eddy Do you solve the issue?
    – Charles Xu
    Nov 22 at 9:50










  • I moved on to other options.
    – Eddy
    Nov 23 at 10:38










  • @Eddy So what choice do you move to?
    – Charles Xu
    Nov 24 at 2:46
















I created a machine with Python runtime (no option for choosing 2.7, which is what my packages need) and there was no npm on the machine. I played around a bit trying to install it but honestly this process doesn't inspire confidence.
– Eddy
Nov 19 at 9:00




I created a machine with Python runtime (no option for choosing 2.7, which is what my packages need) and there was no npm on the machine. I played around a bit trying to install it but honestly this process doesn't inspire confidence.
– Eddy
Nov 19 at 9:00












Perhaps, you can try the custom Docker image, you can install python 2.7 in it in the base image ubuntu or others.
– Charles Xu
Nov 19 at 9:06




Perhaps, you can try the custom Docker image, you can install python 2.7 in it in the base image ubuntu or others.
– Charles Xu
Nov 19 at 9:06












@Eddy Do you solve the issue?
– Charles Xu
Nov 22 at 9:50




@Eddy Do you solve the issue?
– Charles Xu
Nov 22 at 9:50












I moved on to other options.
– Eddy
Nov 23 at 10:38




I moved on to other options.
– Eddy
Nov 23 at 10:38












@Eddy So what choice do you move to?
– Charles Xu
Nov 24 at 2:46




@Eddy So what choice do you move to?
– Charles Xu
Nov 24 at 2:46


















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53363025%2finstalling-python-on-azure-app-service-which-tools-can-i-use%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

"Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

Alcedinidae

RAC Tourist Trophy