py2exe: LoadLibrary(pythondll) failed

Z

zxo102

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
 
T

Thomas Heller

zxo102 said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,262
Messages
2,571,059
Members
48,769
Latest member
Clifft

Latest Threads

Top