在IronPython中使用functools [英] using functools with IronPython

查看:50
本文介绍了在IronPython中使用functools的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在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?

推荐答案

通常_functoolsfunctools.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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆