Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

-bash: datalab: command not found

I installed the cloud datalab component by running gcloud components install datalab

However, I keep getting the following error from my terminal when attempting to create a datalab instance:
-bash: datalab: command not found

enter image description here

When I run gcloud components list, I get that I have correctly installed datalab as evidenced in the image below: enter image description here

Any idea what could be wrong?

like image 687
Ekaba Bisong Avatar asked Dec 09 '25 11:12

Ekaba Bisong


1 Answers

Based on the output of gcloud components list you have already installed the datalab command line tool. The binary should be present at this location: $GOGOLE_CLOUD_SDK_INSTALL_DIR/bin/datalab

If running just datalab still does not invoke this binary, then you do not have the Cloud SDK bin directory in your $PATH environment variable.

To confirm this theory, verify if you are able to run datalab by providing its full path.

Example (assuming your Cloud SDK is installed at ~/google-cloud-sdk):

~/google-cloud-sdk/bin/datalab
like image 127
Tuxdude Avatar answered Dec 13 '25 10:12

Tuxdude



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!