[英]cx_freeze not working with python 3.4
I'm trying to convert a python file to an exe using cx_freeze. 我正在尝试使用cx_freeze将python文件转换为exe。 In the command prompt I'm in the directory that holds the file I'm trying to convert, but when I type in: Python setup.py
build. 在命令提示符中,我在保存我正在尝试转换的文件的目录中,但是当我输入时:Python setup.py
build。 It gives the error 它给出了错误
error: [Errno 2] No such file or directory 'Main.py' 错误:[Errno 2]没有这样的文件或目录'Main.py'
Here is the code in the setup file. 这是安装文件中的代码。
import sys
from cx_Freeze import setup, Executable
setup(
name = "Name",
version = "3.1",
description = "Description",
executables = [Executable("Main.py", base = "Win32GUI")])
Any ideas on why it would be saying this is appreciated! 关于它为什么会这样说的任何想法都表示赞赏!
尝试使用Main.py
的绝对路径
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.