Pyinstaller cmd 错误 [英] Pyinstaller cmd error
本文介绍了Pyinstaller cmd 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我下载了 pyinstaller 和 pywin32 并将它们放在 Python32-35 文件夹中
I downloaded pyinstaller and pywin32 and placed both in the Python32-35 folder
然后我将我编码的 gui 程序 (Homework.py) 的副本放入位于前一个文件夹中的 Scripts 文件夹
I then put a copy of the gui program(Homework.py) I coded into the Scripts folder that is located in the previous folder
现在当我打开一个 cmd 窗口并输入代码时
Now I when I open a cmd window and enter the code
pyinstaller--onefile --windowed Homework.py
我在 cmd 中收到错误提示
I am receiving the error in cmd saying
'pyinstaller--onefile' is not recognized as an internal or external command,
operable program or batch file.
推荐答案
使用这个命令直接调用模块:
use this command to call the module directly:
python -m PyInstaller --onefile --windowed --name="fileName" Homework.py
这篇关于Pyinstaller cmd 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文