Is there a py2exe version that's compatible wi

2019-01-17 10:12发布

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?

7条回答
Summer. ? 凉城
2楼-- · 2019-01-17 10:48

There is py2exe for python versions that can be downloaded at https://pypi.python.org/pypi/py2exe/0.9.2.0#downloads

查看更多
爷、活的狠高调
3楼-- · 2019-01-17 10:58
**
#I use pyinstaller
#pip install pyinstaller
#command line:
#pyinstaller --onedir --onefile --name=what you call it --console myscript.py
#pyinstaller --onedir --onefile --name=what you call it --windowed myscript.py
#pyinstaller -h help file
#pyinstaller -d -f -n=file name -c or -w myscript.py
**
查看更多
做自己的国王
4楼-- · 2019-01-17 11:00

There are significant changes in Python 3.5 regarding the MSVCR dll dependency. py2exe 0.9.2.2 supports Python 3.3 and 3.4 Article describing these changes - BUILDING EXTENSIONS FOR PYTHON 3.5

查看更多
【Aperson】
5楼-- · 2019-01-17 11:01

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

查看更多
够拽才男人
6楼-- · 2019-01-17 11:01

Install pyinstaller through Command Prompt (Microsoft Windows) :

  1. search cmd on windows to open Command Prompt with black screen
  2. type and enter: pip install pyinstaller
  3. Again at Command Prompt type and enter: cd c:\....(the Folder where your file example.py is located)
  4. Finally type and enter: pyinstaller --onefile example.py
  5. Now after some minutes your example.exe is ready
查看更多
祖国的老花朵
7楼-- · 2019-01-17 11:05

I came here looking for a 3.5 exe generator. I've found that using "pyinstaller" version 3.2 works perfectly with python 35. I found the easiest way to use it is from the command window when on Windows. To make things a little easier you can create a command window from the directory your scripts are stored. Here's how: From the directory your scripts are saved you can launch a command window by holding 'Alt' + 'Shift' and clicking on the window. In the drop down menu you will see "Open Command Window Here". In that command window you will write 'pyinstaller --onefile script.py' where "script.py" is the name of the script you want to generate the .exe for. I hope this helps someone else as much as it helped me.

查看更多
登录 后发表回答