赤梦云 发表于 2022-3-18 23:14:15

Pyinstaller只生成了.spec的文件

错误代码:
PS C:\Users\wanghuaicheng\PycharmProjects\pythonProject> Pyinstaller -F setup.exe
65 INFO: PyInstaller: 4.10
65 INFO: Python: 3.10.2
76 INFO: Platform: Windows-10-10.0.22000-SP0
77 INFO: wrote C:\Users\wanghuaicheng\PycharmProjects\pythonProject\setup.spec
79 INFO: UPX is not available.
script 'C:\Users\wanghuaicheng\PycharmProjects\pythonProject\setup.exe' not found
PS C:\Users\wanghuaicheng\PycharmProjects\pythonProject>

求解!!感谢!

isdkz 发表于 2022-3-18 23:17:43

-F 后面应该跟着 python 文件的名字

pyinstaller -F setup.py
页: [1]
查看完整版本: Pyinstaller只生成了.spec的文件