Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
Azure Web Job python: command not found and pip: command not found error
I have a Flask app on Azure Web App that is deployed via Github Action. I have an Webjob set up with 2 python files, a requirements.txt, a run.sh file, and a settings.job file. This is what my run.sh looks like:
#!/bin/bash
pip install -r requirements.txt --user
python ai_agents.py
I keep getting python: command not found and pip: command not found error.
I feel like I've tried everything but the error makes no sense. Even more frustrating is that this Webjob set up used to work a couple of weeks ago. It then failed and I "fixed" it by adding --user at the end of pip install -r requirements.txt. It now is throwing the same error again.
Can somebody please help me. Much appreciated.
Azure App Service
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.