Reputation: 93
I am practicing model deployment to GCP cloud ML Engine. However, I receive errors stated below when I execute the following code section in my local jupyter notebook. Please note I do have bash installed in my local PC and environment variables are properly set.
%%bash
gcloud config set project $PROJECT
gcloud config set compute/region $REGION
Error messages:
-bash: line 1: /mnt/c/Users/User/AppData/Local/Google/Cloud SDK/google-cloud-sdk/bin/gcloud: Permission denied -bash: line 2: /mnt/c/Users/User/AppData/Local/Google/Cloud SDK/google-cloud-sdk/bin/gcloud: Permission denied
CalledProcessError: Command 'b'gcloud config set project $PROJECT\ngcloud config set compute/region $REGION\n\n'' returned non-zero exit status 126.
Upvotes: 0
Views: 453
Reputation: 373
Perhaps you installed Google Cloud SDK with root?
try
sudo gcloud config set project $PROJECT
and
sudo gcloud config set compute/region $REGION
Upvotes: 0