title: Create a simple python executable program and an icon to it - Hello World
body: <p>I am trying to create a simple python executable program - Hello World by following this link <a href="https://mborgerson.com/creating-an-executable-from-a-python-script" rel="nofollow noreferrer">https://mborgerson.com/creating-an-executable-from-a-python-script</a>.</p>
  
  <p>The steps I took is first I create a python program, example: <code>print("Hello, World!")</code> I save this py program file into python script </p>
  
  <blockquote>
    <p>C:\Users\d\AppData\Local\Programs\Python\Python35-32\Scripts</p>
  </blockquote>
  
  <p>Then I install PyInstaller by going to command line point to directory python script and type </p>
  
  <blockquote>
    <p>pip install PyInstaller</p>
  </blockquote>
  
  <p>. After this, in command line I type </p>
  
  <blockquote>
    <p>pyinstaller.exe --onefile --windowed helloWORLD.py</p>
  </blockquote>
  
  <p>after putting the helloWORLD py program in the script folder.  What happen after that is that it creates a </p>
  
  <blockquote>
    <p>helloWORLD.exe</p>
  </blockquote>
  
  <p>in script dist directory. However I can't run it. In vb.net I can run an executable program by double clicking on it. The second question, after being able to create the python executable program and run it; how do I create an icon for the python executable program. Thanks !</p>