I try to deploy service into minikube cluster via DevSpace tool.
I have the following hook in my devspace.yaml
- command: pip install -r requirements.txt
when:
after:
deployments: all
But at the time it executes it I got the error:
[fatal] Error deploying: Error executing hook: exec: "pip install -r requirements.txt": executable file not found in $PATH
I am able to execute pip install -r requirements.txt
from regular terminal in Ubuntu. But when it does it via hook it throws the error.
Could somebody help me to understand why it throws the error at that case?
The requirements.txt
and devspace.yaml
are located at the same level in the folder.