title: Tensorflow failed to create a newwriteablefile when retraining inception
body: <p>I am following this tutorial: <a href="https://codelabs.developers.google.com/codelabs/tensorflow-for-poets/?utm_campaign=chrome_series_machinelearning_063016&amp;utm_source=gdev&amp;utm_medium=yt-desc#4" rel="noreferrer">https://codelabs.developers.google.com/codelabs/tensorflow-for-poets/?utm_campaign=chrome_series_machinelearning_063016&amp;utm_source=gdev&amp;utm_medium=yt-desc#4</a></p>
  
  <p>I am running this part of the code: </p>
  
  <pre><code>python retrain.py \
    --bottleneck_dir=bottlenecks \
    --how_many_training_steps=500 \
    --model_dir=inception \
    --summaries_dir=training_summaries/basic \
    --output_graph=retrained_graph.pb \
    --output_labels=retrained_labels.txt \
    --image_dir=flower_photos
  </code></pre>
  
  <p>Here is the error that I get after it finds the images, makes a bunch of bottlenecks and also does steps training.</p>
  
  <pre><code>Traceback (most recent call last):
    File "retrain.py", line 1062, in &lt;module&gt;
      tf.app.run(main=main, argv=[sys.argv[0]] + unparsed)
    File "C:\Anaconda3\lib\site-packages\tensorflow\python\platform\app.py", line 48, in run
      _sys.exit(main(_sys.argv[:1] + flags_passthrough))
    File "retrain.py", line 905, in main
      f.write('\n'.join(image_lists.keys()) + '\n')
    File "C:\Anaconda3\lib\site-packages\tensorflow\python\lib\io\file_io.py", line 101, in write
      self._prewrite_check()
    File "C:\Anaconda3\lib\site-packages\tensorflow\python\lib\io\file_io.py", line 87, in _prewrite_check
      compat.as_bytes(self.__name), compat.as_bytes(self.__mode), status)
    File "C:\Anaconda3\lib\contextlib.py", line 66, in __exit__
      next(self.gen)
    File "C:\Anaconda3\lib\site-packages\tensorflow\python\framework\errors_impl.py", line 466, in raise_exception_on_not_ok_status
      pywrap_tensorflow.TF_GetCode(status))
  tensorflow.python.framework.errors_impl.NotFoundError: Failed to create a NewWriteableFile: /tmp/output_labels.txt : The system cannot find the path specified.
  </code></pre>
  
  <p>You can find all my code here:
  <a href="https://github.com/officialgupta/MachineLearningRecipes" rel="noreferrer">https://github.com/officialgupta/MachineLearningRecipes</a></p>
  
  <p>Thanks</p>