try it
public class RunCmd { public string Run(string cmd, string args) { ProcessStartInfo start = new ProcessStartInfo(); start.FileName = "python"; start.Arguments = string.Format("\"{0}\" \"{1}\"", cmd, args); start.UseShellExecute = false;
Then
var res = new RunCmd().Run("your_python_file.py","params"); Console.WriteLine(res);
source share