Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a py2exe version that's compatible with python 3.5?

I am trying to compile my python 3.5 file with the latest py2exe version 0.9.2.2 with the following command:

py -3.5 -m py2exe.build_exe myscript.py 

But it reports this:

"run-py3.5-win-amd64.exe" file is not found in the ...lib\site-packages\py2exe\ folder.

Does this mean that py2exe 0.9.2.2 is only compatible up to python 3.4?

like image 225
Avantha De Silva Avatar asked Oct 06 '15 06:10

Avantha De Silva


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.

Which is better py2exe or Pyinstaller?

In PyInstaller it is easy to create one exe, By default both create a bunch of exes & dlls. In py2exe its easier to embed manifest file in exe, useful for run as administrator mode in windows vista and beyond. Pyinstaller is modular and has a feature of hooks to include files in the build that you like.


1 Answers

Unfortunately as of November 2016 there is still no Python 3.5 support in sight for py2exe. However, I've had great success using cx_Freeze 5.0 with Python 3.5 and since both projects use a very similar configuration I've migrated away from py2exe to cx_Freeze without much work. Binary Wheels of cx_Freeze 5.0 for Python 3.5 are now available officially on PyPi: https://pypi.python.org/pypi/cx_Freeze

like image 134
skrause Avatar answered Sep 19 '22 18:09

skrause