Creating .exe file in Python

subhabrata.banerji at gmail.com subhabrata.banerji at gmail.com
Wed Jun 17 11:30:25 EDT 2015


On Wednesday, June 17, 2015 at 8:52:16 PM UTC+5:30, Laura Creighton wrote:
> In a message of Wed, 17 Jun 2015 07:16:33 -0700,  w
> rites:
> >On Monday, June 15, 2015 at 5:12:24 PM UTC+5:30, wrote:
> >> Dear Group,
> >> 
> >> I am trying to learn how to create .exe file for Python. I tried to work around 
> >> http://www.py2exe.org/index.cgi/Tutorial of Py2exe. The sample program went nice.
> >> But if I try to make exe for larger programs with methods and classes I am getting error. 
> >> 
> >> If any one of the esteemed members may kindly suggest how to work out. 
> >> I am using Python2.7+ on Windows 7 Professional. 
> >> 
> >> Regards,
> >> Subhabrata Banerjee.
> >
> >But if I am moving the file from Python environment and to another folder in C: drive it is not running, it is giving me following error messages,
> >Microsoft Windows [Version 6.1.7601]
> >Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
> >
> >C:\tutorial>hello.exe
> >LoadLibrary(pythondll) failedThe specified module could not be found.
> >C:\tutorial\PYTHON27.DLL
> >C:\tutorial>
> >
> >Regards,
> >Subhabrata Banerjee. 
> 
> You have to distribute the DLL as well.
> But at this point you need somebody who knows more about packaging
> for windows than I do.  It's not something I do often, or well.
> 
> Laura

Hi,
My need is done. But I can learn. I saw few .pyd files in dist folder.
Regards,
Subhabrata Banerjee. 



More information about the Python-list mailing list