atworkopk.blogg.se

Pyinstaller windows
Pyinstaller windows












pyinstaller windows

Now save your Python script at your desired location.įor illustration purposes, let’s create a simple Python script that displays ‘Hello World!’ when clicking a button: import tkinter as tkĬanvas1 = tk.Canvas(root, width = 300, height = 300) Next, open the Windows “Command Prompt” and then type the following command to install the PyInstaller package: pip install pyinstaller Step 3: Save your Python Script To start, you may want to add Python to Windows path.Īn easy way to add Python to the path is by downloading a recent version of Python, and then checking the box to ‘ Add Python to PATH’ at the beginning of the installation:įinish the installation, and you should be good to go. Steps to Create an Executable using PyInstaller Step 1: Add Python to Windows Path Here are the full steps to accomplish this goal on Windows. In this short guide, you’ll see how create an executable of a Python script using PyInstaller.














Pyinstaller windows