python - converted script to .exe with py2 exe but when I run .exe nothing happens? -


i ran following setup file generated 2 folder called 'build' , 'dist'. in 'dist' folder found file called final_project.exe. double-clicked launch nothing happened. i'm running windows 7. other files , folder , needed? hoping create 1 executable file send others, run without other files. took @ pyinstaller had trouble getting work. how can create single executable work: here's setup code ran create .exe:

from distutils.core import setup import py2exe, sys, os  sys.argv.append('py2exe')  setup(     options = {'py2exe': {'bundle_files': 1}},     windows = [{'script': "final_project.py"}],     zipfile = none,) 

probably nothing happens because in python don't enjoy handlers getch() function in c returns output standard output or console. alternatively can prepare module setup.py inside it, browse directory , run:

python setup.py install

or

you can upload pypi

and install easy_install or pip. can run:

easy_install nameofpackage/module


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -