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
精彩评论