title: Run python script with ML into C# console app error
body: <p>I wanna run in C# console app python script with libraries like numpy, pandas, matplotlib.pyplot. If I run simple print('hello world') and save it as test.py it works.</p>
  <p>I added to PATH : D:\ProgramData\Anaconda3\Library\bin but it didn't help me too. Thanks for try helping me!</p>
  <p>Code:</p>
  <pre><code>// full path to .py file
          string pyScriptPath = @&quot;C:\Users\micha\Documents\ML\multipleLinearRegression\multiple_linear_regression.py&quot;;
  
          string outputString = null;
          // create new process start info 
          ProcessStartInfo prcStartInfo = new ProcessStartInfo
          {
              // full path of the Python interpreter 'python.exe'
              FileName = @&quot;D:\ProgramData\Anaconda3\python.exe&quot;, // string.Format(@&quot;&quot;&quot;{0}&quot;&quot;&quot;, &quot;python.exe&quot;),
              UseShellExecute = false,
              RedirectStandardOutput = true,
              CreateNoWindow = false,
              Arguments = @&quot;C:\Users\micha\Documents\ML\multipleLinearRegression\multiple_linear_regression.py&quot;
          };
  
          // start process
          using (Process process = Process.Start(prcStartInfo))
          {
              // read standard output JSON string
              using (StreamReader myStreamReader = process.StandardOutput)
              {
                  outputString = myStreamReader.ReadLine();
                  process.WaitForExit();
              }
          }
          Console.WriteLine(outputString);
  </code></pre>
  <p><a href="https://i.stack.imgur.com/xFD0z.png" rel="nofollow noreferrer">console error</a></p>