Creating .exe file in Python

Laura Creighton lac at openend.se
Wed Jun 17 11:21:37 EDT 2015


In a message of Wed, 17 Jun 2015 07:16:33 -0700, subhabrata.banerji at gmail.com w
rites:
>On Monday, June 15, 2015 at 5:12:24 PM UTC+5:30, subhabrat... at gmail.com 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



More information about the Python-list mailing list