0

I'm trying to set up the environment for gcloud ML engine following the instructions here for MACOS and Python 2.7: https://cloud.google.com/ml-engine/docs/command-line

When I get to steps 5-6 to install TensorFlow, I get:

bad interpreter: No such file or directory

That's even if I use: pip --version

I'm not sure what's going on. Everything else installed fine but I'm stuck here. If anyone has better instructions, please post. Thanks

Math Stout
  • 141
  • 1
  • 13

1 Answers1

0

My python Anaconda installation could be causing the pip error. The trick is to do steps 5-6 of the aforementioned guide using the conda virtualenv. Follow the instructions to tensorflow with conda here. Then install the google cloud sdk with conda with:

conda install -c bioconda google-cloud-sdk 

After that, activate the container with:

source activate tensorflow

and then:

gcloud init
Math Stout
  • 141
  • 1
  • 13