title: execute a python script in C#
body: <p>I am trying to execute a python code in C#. Normally it should be done using IronPython and after installing PTVS (I'm using VS 2010). </p>
  
  <pre><code>        var pyEngine = Python.CreateEngine();  
          var pyScope = pyEngine.CreateScope();   
  
          try
          {
             pyEngine.ExecuteFile("plot.py", pyScope);
  
          }
          catch (Exception ex)
          {
              Console.WriteLine("There is a problem in your Python code: " + ex.Message);
          }
  </code></pre>
  
  <p>The problem is that it seems that IronPython doesn't recognize some libraries like numpy, pylab or matplotlib. I took a look a little bit and found some people talking about Enthought Canopy or Anaconda, which i have both installed without fixing the problem.
  What should I do to get the problem solved?</p>