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.