我正在尝试将我的转换.py
为.exe
.
但是,使用auto-py-to-exe
. 第一条错误消息如下:
UPX is not available.
第二条错误消息如下:
An error occurred while packaging.
第二条消息导致“项目输出将不会移动到输出文件夹。
相关错误:
266710 INFO: PyInstaller: 5.0.dev0
266725 INFO: Python: 3.9.1
266746 INFO: Platform: Windows-10-10.0.19041-SP0
266765 INFO: wrote C:\Users\Public\Documents\ESTsoft\CreatorTemp\tmpgijz11tp\Seming Teacher's Reading Master.spec
266784 INFO: UPX is not available.
An error occurred while packaging
Traceback (most recent call last):
File "c:\users\user\appdata\local\programs\python\python39\lib\site-packages\auto_py_to_exe\packaging.py", line 131, in package
run_pyinstaller()
File "c:\users\user\appdata\local\programs\python\python39\lib\site-packages\PyInstaller\__main__.py", line 114, in run
run_build(pyi_config, spec_file, **vars(args))
File "c:\users\user\appdata\local\programs\python\python39\lib\site-packages\PyInstaller\__main__.py", line 65, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "c:\users\user\appdata\local\programs\python\python39\lib\site-packages\PyInstaller\building\build_main.py", line 725, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "c:\users\user\appdata\local\programs\python\python39\lib\site-packages\PyInstaller\building\build_main.py", line 669, in build
code = compile(f.read(), spec, 'exec')
File "C:\Users\Public\Documents\ESTsoft\CreatorTemp\tmpgijz11tp\Seming Teacher's Reading Master.spec", line 26
name='Seming Teacher's Reading Master',
^
SyntaxError: invalid syntax
Project output will not be moved to output folder.