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












0















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 '18 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 '18 at 6:41






  • 1





    Azure Web App has the built-in runtime for NodeJS. You can try to use it.

    – Charles Xu
    Nov 19 '18 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 '18 at 19:45
















0















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 '18 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 '18 at 6:41






  • 1





    Azure Web App has the built-in runtime for NodeJS. You can try to use it.

    – Charles Xu
    Nov 19 '18 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 '18 at 19:45














0












0








0








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 '18 at 7:18









Charles Xu

3,8481210




3,8481210










asked Nov 18 '18 at 16:24









EddyEddy

1,35843757




1,35843757








  • 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 '18 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 '18 at 6:41






  • 1





    Azure Web App has the built-in runtime for NodeJS. You can try to use it.

    – Charles Xu
    Nov 19 '18 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 '18 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 '18 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 '18 at 6:41






  • 1





    Azure Web App has the built-in runtime for NodeJS. You can try to use it.

    – Charles Xu
    Nov 19 '18 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 '18 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 '18 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 '18 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 '18 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 '18 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 '18 at 7:17





Azure Web App has the built-in runtime for NodeJS. You can try to use it.

– Charles Xu
Nov 19 '18 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 '18 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 '18 at 19:45












1 Answer
1






active

oldest

votes


















1














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 '18 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 '18 at 9:06











  • @Eddy Do you solve the issue?

    – Charles Xu
    Nov 22 '18 at 9:50











  • I moved on to other options.

    – Eddy
    Nov 23 '18 at 10:38











  • @Eddy So what choice do you move to?

    – Charles Xu
    Nov 24 '18 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',
autoActivateHeartbeat: false,
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









1














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 '18 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 '18 at 9:06











  • @Eddy Do you solve the issue?

    – Charles Xu
    Nov 22 '18 at 9:50











  • I moved on to other options.

    – Eddy
    Nov 23 '18 at 10:38











  • @Eddy So what choice do you move to?

    – Charles Xu
    Nov 24 '18 at 2:46
















1














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 '18 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 '18 at 9:06











  • @Eddy Do you solve the issue?

    – Charles Xu
    Nov 22 '18 at 9:50











  • I moved on to other options.

    – Eddy
    Nov 23 '18 at 10:38











  • @Eddy So what choice do you move to?

    – Charles Xu
    Nov 24 '18 at 2:46














1












1








1







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 '18 at 8:21









Charles XuCharles Xu

3,8481210




3,8481210













  • 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 '18 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 '18 at 9:06











  • @Eddy Do you solve the issue?

    – Charles Xu
    Nov 22 '18 at 9:50











  • I moved on to other options.

    – Eddy
    Nov 23 '18 at 10:38











  • @Eddy So what choice do you move to?

    – Charles Xu
    Nov 24 '18 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 '18 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 '18 at 9:06











  • @Eddy Do you solve the issue?

    – Charles Xu
    Nov 22 '18 at 9:50











  • I moved on to other options.

    – Eddy
    Nov 23 '18 at 10:38











  • @Eddy So what choice do you move to?

    – Charles Xu
    Nov 24 '18 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 '18 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 '18 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 '18 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 '18 at 9:06













@Eddy Do you solve the issue?

– Charles Xu
Nov 22 '18 at 9:50





@Eddy Do you solve the issue?

– Charles Xu
Nov 22 '18 at 9:50













I moved on to other options.

– Eddy
Nov 23 '18 at 10:38





I moved on to other options.

– Eddy
Nov 23 '18 at 10:38













@Eddy So what choice do you move to?

– Charles Xu
Nov 24 '18 at 2:46





@Eddy So what choice do you move to?

– Charles Xu
Nov 24 '18 at 2:46


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




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

How to pass form data using jquery Ajax to insert data in database?

National Museum of Racing and Hall of Fame

Guess what letter conforming each word