py2exe: LoadLibrary(pythondll) failed

Thomas Heller theller at ctypes.org
Sat Mar 3 23:50:04 CET 2007


zxo102 schrieb:
> Hi there,
>    I py2exe my test.py  as test.exe with a lot of dll and pyc in that
> directory. If I move the test.exe into another directory and run it
> from there, it gives me an error " LoadLibrary(pythondll) failed...
> python24.dll".  How can I set it up correctly for this test.exe to
> run?   Thanks.
> 
> Ouyang
> 
> 

The test.exe created by py2exe relies on everything else in the dist directory,
so you must copy these files as well.

Thomas




More information about the Python-list mailing list