From: 星宇 <coo...@li...> - 2015-01-05 01:48:34
|
hello.py: print('Hello World') setup.py: from distutils.core import setup import py2exe setup( options = {"py2exe":{ "compressed":1, "optimize":2, "bundle_files":0 } }, zipfile = None, console=['hello.py']) > py -3.4 setup.py py2exe When I run hello.exe on my computer, It print "Hello World". But when I run it on other three computers, It print "FATAL ERROR: Could not load python library" and crash. Then I copy python34.dll with hello.exe, It print "Hello World". What can I do? Thanks. |