Py2exe is a Python package that allows the building of standalone Windows executable programs that can be 32-bit or 64-bit from Python scripts. This package has only support to Windows operating system. It can build console executable and windows (GUI) executable. So, in this article, we will be installing the py2exe package in Windows Operating System.
Installing the py2exe package on Windows
Requirements/Pre-requisites:
To install the py2exe package in Windows follow the following steps:
Step 1: Firstly, we will check the current version of Python3 using the following command.
python –version
Step 2: Now, we will check the version of the pip package manager, which is responsible for installing the external packages. Use the below command to check the version of the pip manager
pip –version
Step 3: Now using the PIP manager we are going to install the py2exe package. So for the installation run the following command on the terminal.
pip install py2exe
Verifying the installation of the py2exe package
After installing the package, the next important step is to check the installation of the py2exe package is successful or not. So here, we are simply getting the information of the installed package (py2exe) by executing the below command on the terminal itself.
python -m pip show py2exe
The below output will be displayed after the successful installation of the py2exe package on your Windows machine.