Search code examples
tensorflowcloudplatform

how to install tensorflow on google cloud platform


when I use the command pip install tensorflow the download is only 99% complete and terminated at that point. How can I install tensorflow using google cloud shell.


Solution

  • Instead of installing it by yourself you can use the machine learning api and use TensorFlow for training or inference. Just follow this guidelines: https://cloud.google.com/ml/docs/quickstarts/training

    You can submit a TensorFlow job like this:

    gcloud beta ml jobs submit training ${JOB_NAME} \
      --package-path=trainer \
      --module-name=trainer.task \
      --staging-bucket="${TRAIN_BUCKET}" \
      --region=us-central1 \
      -- \
      --train_dir="${TRAIN_PATH}/train"