I am trying to use the numpy module functions in my Python code, which I run inside my C # application in VS13.
I do this to import a module:
ScriptEngine pyEngine = IronPython.Hosting.Python.CreateEngine();
ScriptScope pyScope = pyEngine.CreateScope();
pyEngine.Execute("import numpy", pyScope);
however, he says "There is no module named numpy." I searched for a solution and found this:
How to install numpy and scipy for Ironpython27? The old method does not work
Using Nilsters answer, I managed to install numpy and im to use it when I start ipy from cmd. However, I do not know how to use it in my C # application in VS. I was browsing files and found
\ IronPython 2.7 \ DLLs \ NumpyDotNet.dll
and:
\ IronPython 2.7 \ Lib \ site-packages \ numpy \
How can I let my python code import numpy?