I am very new to this and require some help. I am trying to call something basic as per the section below using C# with the IronPython nuget.
Below is what I am trying:
Microsoft.Scripting.Hosting.ScriptEngine py = Python.CreateEngine();
Microsoft.Scripting.Hosting.ScriptScope s = py.CreateScope();
py.Execute("import numpy as np incomes = np.random.normal(27000, 15000, 10000) x = np.mean(incomes)", s);
I keep receiving the following error: An exception of type 'Microsoft.Scripting.SyntaxErrorException' occurred in Microsoft.Scripting.dll but was not handled in user code
Any help would be appreciated thank you
pyinstallerinstead