title: How to print in Console while using Cx_Freeze?
body: <p>I have written a TCP Client program in Python and want to make a executable out of it using Cx_Freeze.</p>
  
  <p>I have used the setup.py file given as below:</p>
  
  <pre><code>import sys
  from cx_Freeze import setup, Executable
  if sys.argv[1] == 'bdist_msi':
      sys.argv += ['--initial-target-dir', 'C:\TCP CLIENT\\']
  
  # Dependencies are automatically detected, but it might need fine tuning.
  build_exe_options = {"packages": ["os"], "excludes": ["tkinter"], 'init_script':'Console'}
  
  # GUI applications require a different base on Windows (the default is for a
  # console application).
  base = None
  if sys.platform == "win32":
      base = "Win32GUI"
  
  setup( name = "TCP Client",
          version = "0.1",
          description = "My GUI application!",
          options = {"build_exe": build_exe_options},
          executables = [Executable("MBMD TCP CLIENT.py", base=base)])
  </code></pre>
  
  <p>I want to print on the console when the exe runs.</p>
  
  <p>For that I have used:
  raw_input() 
  but it throws an error:</p>
  
  <p><img src="https://i.stack.imgur.com/4BYri.jpg" alt="enter image description here"></p>
  
  <p>My aim is to have some prints on the console.</p>
  
  <p>Please help me so that I can have prints on my console while the Program runs.</p>