简体   繁体   中英

cx_freeze not working with python 3.4

I'm trying to convert a python file to an exe using cx_freeze. 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. It gives the error

error: [Errno 2] No such file or directory '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的绝对路径

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM