Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy
 

How to install py2exe via python pip




py2exe - Build standalone executables for Windows, it belongs to Classifiers:

- Development Status :: 4 - Beta
- Environment :: Console
- License :: OSI Approved :: MIT License
- License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)
- Operating System :: Microsoft
- Operating System :: Microsoft :: Windows
- Programming Language :: C
- Programming Language :: Python :: 3.1
- Programming Language :: Python :: 3.7
- Programming Language :: Python :: 3.8
- Programming Language :: Python :: 3.9
- Programming Language :: Python :: 3.10
- Programming Language :: Python :: Implementation
- Programming Language :: Python :: Implementation :: CPython
- Topic :: Software Development
- Topic :: Software Development :: Libraries
- Topic :: Software Development :: Libraries :: Python Modules
- Topic :: System
- Topic :: System :: Software Distribution
- Topic :: Utilities

When you know about this project and you want to new install py2exe to support your project or you get trouble as ModuleNotFoundError: No module named "py2exe" or ImportError: cannot import name "py2exe" in your project, let follow this tutorial to install py2exe



Installation:

Step 1: First, ensure you installed pip in your os, to check pip has been installed on your computer

In Windows (CMD):

py -m pip --version

In Unix/macOS:

python3 -m pip --version

Ensure pip, setuptools, and wheel are up to date:

In Windows (CMD):

py -m pip install --upgrade pip setuptools wheel

In Unix/macOS:

python3 -m pip install --upgrade pip setuptools wheel


Optional - If you want to install in virtual environment:

In Windows (CMD):

- Install virtualenv - if you installed it, please ignore

py -m pip install --user virtualenv

- Create a virtual environment

py -m venv test_py2exe_env

- Active the virtual environment

test_py2exe_env\Scripts\active

In Unix/macOS:

- Install virtualenv - if you installed it, please ignore

pip3 install virtualenv

- Create a virtual environment

python3 -m venv test_py2exe_env

- Active the virtual environment

source test_py2exe_env/bin/active


Step 2: OK, now, let flow below content to start the installation py2exe

To install py2exe on Windows(CMD):

py -m pip install py2exe

To install py2exe on Unix/macOs:

pip install py2exe


Step 3: If you want to install a specific py2exe version, add ==<py2exe version> to the end command line

Example:

pip install py2exe==0.3.4


Please see the version list below table:

VersionReleased dateCommand
py2exe 0.11.1.12022-07-03T22:09:17Windows:

py -m pip install py2exe==0.11.1.1

Unix/macOs:

pip install py2exe==0.11.1.1

py2exe 0.11.1.02022-02-13T10:37:10Windows:

py -m pip install py2exe==0.11.1.0

Unix/macOs:

pip install py2exe==0.11.1.0

py2exe 0.11.0.12021-11-16T21:28:10Windows:

py -m pip install py2exe==0.11.0.1

Unix/macOs:

pip install py2exe==0.11.0.1

py2exe 0.11.0.02021-11-14T11:19:38Windows:

py -m pip install py2exe==0.11.0.0

Unix/macOs:

pip install py2exe==0.11.0.0

py2exe 0.10.4.12021-09-07T17:37:18Windows:

py -m pip install py2exe==0.10.4.1

Unix/macOs:

pip install py2exe==0.10.4.1

py2exe 0.10.4.02021-04-24T13:15:25Windows:

py -m pip install py2exe==0.10.4.0

Unix/macOs:

pip install py2exe==0.10.4.0

py2exe 0.10.3.12021-03-28T20:23:30Windows:

py -m pip install py2exe==0.10.3.1

Unix/macOs:

pip install py2exe==0.10.3.1

py2exe 0.10.3.02021-03-13T15:14:28Windows:

py -m pip install py2exe==0.10.3.0

Unix/macOs:

pip install py2exe==0.10.3.0

py2exe 0.10.2.12021-02-21T20:39:38Windows:

py -m pip install py2exe==0.10.2.1

Unix/macOs:

pip install py2exe==0.10.2.1

py2exe 0.10.2.02021-01-23T13:50:35Windows:

py -m pip install py2exe==0.10.2.0

Unix/macOs:

pip install py2exe==0.10.2.0

py2exe 0.10.1.0 yanked2020-11-08T11:19:44Windows:

py -m pip install py2exe==0.10.1.0                                                                          yanked

Unix/macOs:

pip install py2exe==0.10.1.0                                                                          yanked

py2exe 0.10.0.2 yanked2020-10-24T21:59:43Windows:

py -m pip install py2exe==0.10.0.2                                                                          yanked

Unix/macOs:

pip install py2exe==0.10.0.2                                                                          yanked

py2exe 0.9.2.2 yanked2014-10-21T18:44:47Windows:

py -m pip install py2exe==0.9.2.2                                                                          yanked

Unix/macOs:

pip install py2exe==0.9.2.2                                                                          yanked

py2exe 0.9.2.0 yanked2014-05-09T17:47:46Windows:

py -m pip install py2exe==0.9.2.0                                                                          yanked

Unix/macOs:

pip install py2exe==0.9.2.0                                                                          yanked

py2exe 0.6.92008-11-16T07:12:49Windows:

py -m pip install py2exe==0.6.9

Unix/macOs:

pip install py2exe==0.6.9

py2exe 0.6.82008-06-15T18:41:16Windows:

py -m pip install py2exe==0.6.8

Unix/macOs:

pip install py2exe==0.6.8

py2exe 0.6.62007-01-14T00:18:53Windows:

py -m pip install py2exe==0.6.6

Unix/macOs:

pip install py2exe==0.6.6

py2exe 0.6.52006-03-23T15:48:14Windows:

py -m pip install py2exe==0.6.5

Unix/macOs:

pip install py2exe==0.6.5

py2exe 0.6.32005-10-08T15:24:25Windows:

py -m pip install py2exe==0.6.3

Unix/macOs:

pip install py2exe==0.6.3

py2exe 0.6.12005-09-06T08:48:12Windows:

py -m pip install py2exe==0.6.1

Unix/macOs:

pip install py2exe==0.6.1

py2exe 0.5.22004-07-09T22:03:13Windows:

py -m pip install py2exe==0.5.2

Unix/macOs:

pip install py2exe==0.5.2

py2exe 0.5.02004-01-16T21:26:53Windows:

py -m pip install py2exe==0.5.0

Unix/macOs:

pip install py2exe==0.5.0

py2exe 0.3.42003-05-09T20:22:21Windows:

py -m pip install py2exe==0.3.4

Unix/macOs:

pip install py2exe==0.3.4


Step 4: Otherwise, you can install py2exe from local archives:

Download the distribution file from py2exe-0.11.1.1.tar.gz or the specific py2exe version in the below list of distribution

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_py2exe_downloaded_file>

On Unix/macOs:

pip install <path_to_py2exe_downloaded_file>


List distribution:


Project link:

- Homepage