![](/img/trans.png)
[英]python.exe version 3.3.2 64 & 32 crash while creating .exe file on win 7 64 & 32 with cx_Freeze
[英]CX_Freeze: Python.exe not responding
我正在嘗試將我的文本編輯器轉換為 exe 以出售它,但是當我嘗試在 cmd 中轉換它時,Windows 說 python.exe 沒有響應。
我的文件名為 arshi.py。
下面是我的 setup.py:
import sys
from cx_Freeze import setup, Executable
base = None
if (sys.platform == "win32"):
base = "Win32GUI"
exe = Executable(
script = "arshi.py",
icon = "icon.PNG",
targetName = "Arshi.exe",
base = base
)
setup(
name = "Arshi Editor",
version = "0.1",
description = "A lightweight text editor for Python",
author = "Henry Zhu",
options = {'build_exe': {"packages": ["pygments"]}},
executables = [exe]
)
cx_freeze 不接受.png文件,而只接受.ico文件。 將.png文件轉換為.ico文件對我來說效果很好。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.