Create a simple python executable program and an icon to it - Hello World

浪子不回头ぞ 提交于 2019-12-10 12:10:08

问题


I am trying to create a simple python executable program - Hello World by following this link https://mborgerson.com/creating-an-executable-from-a-python-script.

The steps I took is first I create a python program, example: print("Hello, World!") I save this py program file into python script

C:\Users\d\AppData\Local\Programs\Python\Python35-32\Scripts

Then I install PyInstaller by going to command line point to directory python script and type

pip install PyInstaller

. After this, in command line I type

pyinstaller.exe --onefile --windowed helloWORLD.py

after putting the helloWORLD py program in the script folder. What happen after that is that it creates a

helloWORLD.exe

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 !

来源:https://stackoverflow.com/questions/41318780/create-a-simple-python-executable-program-and-an-icon-to-it-hello-world

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!