title: python keras SyntaxError: invalid syntax: f'at {latest_checkpoint}. Retrying. '
body: <p>I got</p>
  <blockquote>
  <p>SyntaxError: invalid syntax: f'at {latest_checkpoint}. Retrying. '</p>
  </blockquote>
  <p>when I tried the code, height.py ()
  The error occurred when importing keras</p>
  <pre><code>File &quot;height.py&quot;, line 9, in &lt;module&gt;
      from keras import layers
    File &quot;/home/jekang39/anaconda2/envs/dl_gwas/lib/python2.7/site-packages/keras/__init__.py&quot;, line 22, in &lt;module&gt;
      from keras import distribute
    File &quot;/home/jekang39/anaconda2/envs/dl_gwas/lib/python2.7/site-packages/keras/distribute/__init__.py&quot;, line 18, in &lt;module&gt;
      from keras.distribute import sidecar_evaluator
    File &quot;/home/jekang39/anaconda2/envs/dl_gwas/lib/python2.7/site-packages/keras/distribute/sidecar_evaluator.py&quot;, line 209
      f'at {latest_checkpoint}. Retrying. '
      ^
  SyntaxError: invalid syntax
  
  </code></pre>
  <p>If anyone has a clue to solve the error, kindly let me know</p>