Python pyinstaller10/31/2023 ![]() ![]() Type "help", "copyright", "credits" or "license" for more information. ![]() If you want to use the older one just type py -3.7 ![]() But next day when you install Python 3.8 and you type “py” it will run Python 3.8. If today you have installed only python 3.7, “py” will run Python 3.7. It’s because of the file C:\Windows\py.exe which appears when you install your first Python. In command line when you type “py” your computer will look for the newest Python’s version - I mean the one with the highest version number. You can install more than one Python’s version. Secondly choose the version accordingly to type of your system. So firstly you need to install Python 3.7. Pyinstaller doesn’t work properly with the newest python version which is now 3.8. I’m using Windows, but some rules are the same probably for other systems. But jumping from one page to another I figured it out. What was working in the beginning suddenly stopped working and got me very confused. But the more programs I write, the more python’s versions I have (and packages and virtual environments). I am able to write simple but useful scripts. You can create your exe file very easily also with py2exe. -icon= : Choose the file to use as icon for file.-windowed: Parameter to chooseif you are compiling in Mac OS X or Windows.-onefile: Create a one-file bundled executable. ![]() An example could be pyinstaller.exe -onefile -windowed -icon=app.ico app.py where: You can find the full list the options in the documentation. exe application you can run from the command line Once you have decided what to include in your. This command will generate a your_file_name.spec file where you can include all the dll required by your application and any custom settings ( Using Spec Files)
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |