开发者

Compile DLL from python code

开发者 https://www.devze.com 2023-02-18 11:00 出处:网络
Hi does anyo开发者_开发知识库ne know if you can compile Python code into a Windows DLL file? How would you go about doing this?One way would be to create a C or C++ library that embeds the Python inte

Hi does anyo开发者_开发知识库ne know if you can compile Python code into a Windows DLL file? How would you go about doing this?


One way would be to create a C or C++ library that embeds the Python interpreter and runs your Python code.

Another option would be to translate you Python code to C++ with ShedSkin and make that a DLL, although I wouldn't expect a very clean API to come out of this.

0

精彩评论

暂无评论...
验证码 换一张
取 消