I want to user gcloud command in cloud Functions source
main.py
import os
command = 'gcloud --project {}~~'
os.system(command)
but erorr
sh: 1: gcloud: not found
As @puteri said You may need to use the libraries of the product you wish to interact with. So, Can you install this Python Client for Cloud Functions and also refer to this multiple Python Cloud Client Libraries . Post installing this python client that may help in resolving your issue.
Also, gcloud command not found error occurs if your installation is unsuccessful due to the find command not being recognized find this SO . You can Try another alternate way to resolve this issue by installing the cloud SDK
gcloudin CF. You may need to use the libraries of the product you wish to interact with