Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing python requirements #17

Open
amahlaka opened this issue Jan 1, 2019 · 5 comments
Open

Installing python requirements #17

amahlaka opened this issue Jan 1, 2019 · 5 comments

Comments

@amahlaka
Copy link

amahlaka commented Jan 1, 2019

Should the requirements from requirements.txt be automatically installed when using python3.7 version of the container on my webapp?
Whenever i try to depoly my project, nothing from the requirements.txt gets installed, i had to use a custom startup command to get the app to work

@AliciaSabat
Copy link

I had the same issue with python 3.7 and also solved it by using custom start up command.

@gregroberts
Copy link

I had this issue deploying via the az CLI and via VSCode.

For me the cause of the issue was that the deployment source was not set to Git.

Without the deployment source being Git, the requirements.txt aren't installed.

Follow instructions here to change deployment source to Git, if using VSCode:

https://code.visualstudio.com/docs/python/tutorial-deploy-app-service-on-linux#_deploy-your-app-using-git

@andrewholler
Copy link

Potentially a related issue, microsoft/Oryx#557

@andrewholler
Copy link

Solution from the other thread, set app setting SCM_DO_BUILD_DURING_DEPLOYMENT=true. This way the app service does build automation for you when doing a ZIP deployment. See this for more info: https://docs.microsoft.com/en-us/azure/app-service/deploy-zip#deploy-zip-file-with-azure-cli

@cdeil
Copy link

cdeil commented May 20, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants