开发者

py2exe and win32com

开发者 https://www.devze.com 2022-12-17 08:17 出处:网络
Can py2开发者_开发技巧exe create standalone executables even ones requiring the win32com package?

Can py2开发者_开发技巧exe create standalone executables even ones requiring the win32com package?

I've googled / searched SO to no avail.


I've used py2exe for a project that depended on win32com as well as pysvn. It worked fine, no hassles.

That was using Python 2.5 and later 2.6. Note that py2exe doesn't support Python 3.x.


Yes, it can. But you may need to add a refereneces to DLL that your application needs. Check the bottom of http://www.py2exe.org/index.cgi/WorkingWithVariousPackagesAndModules . It contains useful resources to build Python apps that uses win32com.

Also if you use typelibs, check that the version is the same on all Windows versions you want to deploy. Otherwise, your app may fail

0

精彩评论

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