Search code examples
python-3.xazureflask-restful

WARNING: Could not find virtual environment directory /home/site/wwwroot/antenv


I have a rest api projet with flask and this is the error when i deploy it to azure This my project structure:

i have flask_alchemy in requirement.txt but i receive the error.

this is my log

enter image description here enter image description here


Solution

  • i solved the problem: configuration -> App settings -> add new app setting SCM_DO_BUILD_DURING_DEPLOYMENT=true