Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install py2exe for python 2.7 over pip: this package requires Python 3.3 or later

>>> python -c "import sys; print sys.version" 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)]  >>> pip --version pip 1.5.5 from C:\Python27\lib\site-packages (python 2.7)  >>> pip install py2exe <mumble grumble..> RuntimeError: This package requires Python 3.3 or later 

though official py2exe download page says they have exactly what I need:

screenshot

So how to install py2exe over pip?

like image 757
Bruno Gelb Avatar asked May 19 '14 09:05

Bruno Gelb


People also ask

Does py2exe support Python 3?

Project description. py2exe is a distutils extension which allows to build standalone Windows executable programs (32-bit and 64-bit) from Python scripts; Python 3.3 and later are supported.

Does py2exe work on Linux?

py2exe doesn't support on Linux or Mac, as it's aimed to create .exe files which is a Windows-unique format. You can download a Windows virtual machine on both Mac and Linux, use Wine or use a different tool like Pyinstaller on Linux, or py2app on Mac.


2 Answers

It is missing from pypi, if you click on the 0.6.9 link it brings you to the 0.9.2.0 python 3 package, there seems to be no 0.6.9 package available to download.

Try using pip install http://sourceforge.net/projects/py2exe/files/latest/download?source=files

like image 60
Padraic Cunningham Avatar answered Sep 22 '22 12:09

Padraic Cunningham


There is also a wheel of py2exe available for Python 2.x: py2exe_py2 0.6.9

You can do: pip install py2exe_py2

Pypi link.

like image 42
vk1011 Avatar answered Sep 24 '22 12:09

vk1011