Python file to exe not working in all locations in my computer only works in dist folder in python installation -


i have created exe file python file add.py in case, followed tutorial tutorial

my setup.txt file follows:

from distutils.core import setup import py2exe  setup(console=['add.py']) setup(options = { "py2exe": {"includes": ["encodings"]}}) 

the following exe creation step:

exe creation cmd

i got output exe file add.exe in location c:\python34\dist. double clicked , working. when move add.exe location suppose c:\python34 or other location in system not working. giving following error instead of executing:

image

i not have idea why misbehave way. need exe file work locations. how can solve this? appreciated!!

setup(     console=['add.py'],      options = {          "py2exe": {               "includes": ["encodings"],                "bundle_files": 1,                "ascii": false          }     },      zipfile = none ) 

Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -