在IronPython中使用functools [英] using functools with IronPython
问题描述
我在IronPython中使用functools库.
I'm using the functools library with IronPython.
它在开发机器上可以正常工作,但是在生产中无法导入库.引发异常:
It works fine on the development machine, but in production the library can't be imported. Exception is thrown:
IronPython.Runtime.Exceptions.ImportException:未命名模块 _functools
IronPython.Runtime.Exceptions.ImportException: No module named _functools
IronPython当然已经安装在生产机器上,并且functools.py也在那里,但是我应该如何部署_functools?
IronPython is installed on the production machine of course and functools.py is there, but how should I deploy _functools?
推荐答案
通常_functools
是functools.py
包装的本机组件.鉴于IronPython不支持本机模块(到目前为止),相关功能已在IronPython.Modules.dll
中实现(如
Normally _functools
is the native component that functools.py
wraps. Given that native modules are not supported in IronPython (as of now) the relevant functionality is implemented in IronPython.Modules.dll
(as seen here).
IronPython.Modules.dll
可能是您所缺少的.
这篇关于在IronPython中使用functools的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!