title: How to see Python executable output in a cmd window?
body: <p>I have written a script in python 3.5. I have made an .exe file of it using pyinstaller. The script has some print statements which are displayed in the console during execution. When i ran my script from command prompt i can see all the messages in my cmd but when i run .exe file from cmd than i do not see any msgs in command prompt. Is there any way to see msgs in command prompt from .exe file.</p>
  
  <p>For example lets suppose below is my script named abc.py:</p>
  
  <pre><code>def sum():
     first = 5
     print('First number is {}'.format(first))
     second = 10
     result = first + second
     print('second number is {}'.format(second))
     print('Sum is = {}'.format(result))
   sum()
  </code></pre>
  
  <p>Now when i run this file from cmd like: python \pathto\abc.py, i can see all the messages in cmd. Now when i make .exe of this and now do something like \pathto\abc.exe from cmd then i do not see anything. Is there anyway to see ,msgs in a cmd from .exe file?</p>