简体   繁体   中英

How to Create a python Dll file that should be used in C#.net?

I have to create a win32 python dll file which can used in C#.Net code. And access the classes & functions present in the dll file through C#. Is there any way to create a win32 python dll?

Please help me out....

You can compile your Python sources to a DLL with pyc.py , in the Samples directory of IronPython. However, you can't load this DLL from C# directly - you'll still need to host IronPython, but then you can reference the DLL with the IronPython engine and import from it.

Try do some investigation about Pyrex. I'm not sure if it will solve your issue, but at least I seen that some guys was trying to get it working.

您不需要任何DLL,只需使用IronPython加载Python源

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM