Open In App

How to Install py2exe for Python on Windows?

Last Updated : 25 Apr, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

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:

  1. Python3  
  2. Python3-pip

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

Checking-the-version-of-Python

 

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

Checking-the-version-of-the-pip-package

 

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 

Installing-the-py2exe-package

 

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.

Verifying-the-installation-of-the-py2exe-package

 


Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads