![]() ![]() The first one is a list of packages you wish to include. Lets discuss the cx_Freeze setup file and its contents briefly. Tutorial: How to configure cx_Freeze Setup.py Now we have ourselves a setup file, which looks like this. It’s asking you for the name of the setup file, which is setup.py by default. ![]() ![]() The last question above can be left as blank (just press enter). (C)onsole application, (G)UI application, or (S)ervice : G Python file to make executable from: graphingapp.py Shown below are the questions we were asked, and our answers. It will ask you several questions, and then create a setup file based on your answers. Cx_Freeze gives us an easy way to create a setup file with default settings using the below command. The setup file on the other hand, can be re-run instantly as all settings are permanent there.Īll you need to do is create a file called “setup.py” and insert the appropriate code. This is especially annoying if you have many special configurations and settings enabled (which is quite common when using cx_Freeze). However, we do not recommend the console approach, because you need to re-enter the commands each time you want to compile. Another common approach is to do everything on the console, without having to create a setup file. There are several ways of working with cx_Freeze, but the easiest to manage is using a setup file. Once we are done with the installation, we can begin converting our Python file to an EXE. First, we are going to install cx_freeze using pip (you can use any equivalent method). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |