Bash web job using Python fails with python3 command not found
Alexei Humeniy
1
Reputation point
I have a web app in Python (Fast API) and I've deployed several web jobs as zip files with a bash script to call python scripts.
When I deployed them, they ran fine, but the next day (now) they all fail with the same message:
python3: command not found
My jobs are pretty much this:
- {name}.sh
- {name}.py
My bash scripts are like this.
python -m venv .
source bin/activate
python -m pip install requests
python {name}.py
Restarting the web app didn't help. The main app still works fine.
Sign in to answer