如何从C#调用python函数(tensorflow)

时间:2017-05-04 10:18:04

标签: python tensorflow ironpython

我的环境是windows10,python3.5。我使用tensorflow训练神经网络并编写了一个接口函数来返回我的结果,现在我想在C#项目中调用该函数。我知道C#中有一个像Ironpython的插件,但看起来它只支持python2.7,我尝试将第三方库添加到路径中,但结果失败了。我不知道如何解决这个问题...

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\numpy\__init__.py", line 142, in <module>
  File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\numpy\add_newdocs.py", line 13, in <module>
  File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\numpy\lib\__init__.py", line 8, in <module>
  File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\numpy\lib\type_check.py", line 11, in <module>
  File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\numpy\core\__init__.py", line 14, in <module>
ImportError: cannot import multiarray from numpy.core

0 个答案:

没有答案