title: IronPython: Unexpected token 'from'
body: <p>i was running python script from .net using IronPython, below is my python script</p>
  
  <pre><code>import tensorflow as tf    
  print('Tensorflow Imported')
  </code></pre>
  
  <p>below is C# Code</p>
  
  <pre><code>using System;
  using System.Text;
  using System.IO;
  using IronPython.Hosting;
  using System.Collections.Generic;
  using Microsoft.Scripting.Hosting;
  
  namespace ConsoleApplication1
  {
      class Program
      {
          private static void Main()
          {
              var py = Python.CreateEngine();
              List&lt;string&gt; searchPaths = new List&lt;string&gt;();
              searchPaths.Add(@"C:\Users\Admin\AppData\Local\Programs\Python\Python35\Lib)");
              searchPaths.Add(@"C:\Users\Admin\AppData\Local\Programs\Python\Python35\Lib\site-packages)");
              py.SetSearchPaths(searchPaths);
              try
              {
                  py.ExecuteFile("script.py");
              }
              catch (Exception ex)
              {
                  Console.WriteLine(ex.Message);
              }           
          }
      }
  }
  </code></pre>
  
  <p>below is my output</p>
  
  <blockquote>
    <p>Unexpected token 'from'</p>
  </blockquote>
  
  <p>if i remove import statement then python script executes fine. I tried including <code>os,sys</code> all those were imported without any issue. I have installed TensorFlow via pip, when i run above script through python console(v3.5) it works fine.<Br><Br> </p>
  
  <p><strong>Update</strong>: in <a href="https://www.tensorflow.org/install/install_windows" rel="nofollow noreferrer">TF doc</a> its written "<em>TensorFlow only supports version 3.5.x of Python on Windows</em>". but official release of IronPython is version 2.7
  I was happy to find IronPython on <a href="https://github.com/IronLanguages/ironpython3" rel="nofollow noreferrer">GitHub</a>, tried building it (i just typed build in console and got freaked out with the <a href="https://docs.google.com/document/d/1ltv-5Qws1CpUwi3cerafuvdMntATUb66yyxjMkI6G84/edit?usp=sharing" rel="nofollow noreferrer">long list</a> of error messages it showed! :D
  couldn't find pre-compiled binaries</p>
  
  <p>is there any alternative way to import tensorflow in IronPython 2.7 or run Python in .net? </p>