title: gcloud ml-engine local predict RuntimeError: Bad magic number in .pyc file
body: <p>My objective is to make predictions on google cloud ml engine.</p>
  
  <p>I installed gcloud sdk on linux ubuntu 16.04LT following <a href="https://cloud.google.com/sdk/docs/quickstart-debian-ubuntu" rel="noreferrer">Google instructions</a>.
  I already have a machine learning trained model.
  I using python version anaconda python 3.5. </p>
  
  <p>I run:</p>
  
  <pre><code>gcloud ml-engine local predict --model-dir={MY_MODEL_DIR} --json-instances={MY_INPUT_JSON_INSTANCE}
  </code></pre>
  
  <p>I received the message: ERROR: </p>
  
  <blockquote>
    <p>(gcloud.ml-engine.local.predict) RuntimeError: Bad magic number in .pyc file</p>
  </blockquote>
  
  <p>Below is all the stack trace:</p>
  
  <pre><code>DEBUG: (gcloud.ml-engine.local.predict) RuntimeError: Bad magic number in .pyc file
  Traceback (most recent call last):
    File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/calliope/cli.py", line 797, in Execute
      resources = calliope_command.Run(cli=self, args=args)
    File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/calliope/backend.py", line 757, in Run
      resources = command_instance.Run(args)
    File "/usr/lib/google-cloud-sdk/lib/surface/ml_engine/local/predict.py", line 65, in Run
      args.text_instances)
    File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/command_lib/ml_engine/local_utils.py", line 89, in RunPredict
      raise LocalPredictRuntimeError(err)
  LocalPredictRuntimeError: RuntimeError: Bad magic number in .pyc file
  ERROR: (gcloud.ml-engine.local.predict) RuntimeError: Bad magic number in .pyc file
  Evaluation ended**
  </code></pre>