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

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

Any idea what could be wrong?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With