我只是试着用cx\u冻结一个exe。你知道吗
我使用命令:path\python37.exe path\setup.py build
我在CLI中有很多行(我写了一部分,但不是全部,我复制了其中一些,删除了那些看起来很像的,),但是没有错误,并且没有创建构建。你知道吗
这是我的setup.py
文件:
from cx_Freeze import setup, Executable
base = "Win32GUI" # This lets the exe run without the console popping up
exe = Executable("C:\\Users\\Charly\\CloudStation\\Projets\\Perso\\Tab_Stat_Employes\\LogiquePython\\ScriptTabStats.py",
targetName='ScriptTabStats.exe')
setup(
name="ScriptTabStats",
description = "Make calculations on xlsx file",
executables = [exe],
)
欢迎任何帮助:)
命令行显示:
Name File
---- ----
m BUILD_CONSTANTS
m __future__ C:\Users\Charly\AppData\Local\Programs\Python\Python37\lib\_bootlocale.py
m _bz2 C:\Users\Charly\AppData\Local\Programs\Python\Python37\DLLs\_bz2.pyd
m _functools
m _hashlib
m encodings.iso2022_jp_2 C:\Users\Charly\AppData\Local\Programs\Python\Python37\lib\encodings\iso2022_jp_2.py
m encodings.iso2022_jp_2004
Missing modules:
? __main__ imported from bdb, pdb
? _frozen_importlib imported from importlib, importlib.abc
? _frozen_importlib_external imported from importlib, importlib._bootstrap, importlib.abc
? _posixsubprocess imported from subprocess
? _winreg imported from platform
? grp imported from shutil, tarfile
? java.lang imported from platform
? org.python.core imported from copy, pickle
? os.path imported from os, pkgutil, py_compile, tracemalloc, unittest, unittest.util
? posix imported from os
? pwd imported from http.server, posixpath, shutil, tarfile, webbrowser
? termios imported from tty
? vms_lib imported from platform
This is not necessarily a problem - the modules may not be needed on this platform.
copying C:\Users\Charly\AppData\Local\Programs\Python\Python37\DLLs\pyexpat.pyd -> build\exe.win-amd64-3.7\lib\pyexpat.pyd> build\exe.win-amd64-3.7\lib\select.pyd
'
尝试将您的
setup.py
放在与ScriptTabStats.py
相同的目录中,将exe行修改为并以
从同一个目录。你知道吗
相关问题 更多 >
编程相关推荐