ironclad

Can't import numpy into embedded ironpython engine

三世轮回 提交于 2019-12-22 09:55:28
问题 From an ipy console I can import ironclad import numpy with no problem. However when I try the same imports with an embedded interpreter the numpy import fails. My Python engines is set up like this: public PyEngine() { //Frames option needed to use sys.__getframe //used in Numpy and others. Dictionary<string, object> opts = new Dictionary<string, object>(); opts["Frames"] = ScriptingRuntimeHelpers.True; engine = Python.CreateEngine(opts); scope = engine.CreateScope(); runtime = engine