【问题标题】:Pyinstaller cmd errorPyinstaller cmd错误
【发布时间】:2016-06-11 01:38:26
【问题描述】:

我下载了 pyinstaller 和 pywin32 并将它们放在 Python32-35 文件夹中

然后我将我编码的 gui 程序 (Homework.py) 的副本放入位于上一个文件夹中的 Scripts 文件夹中

现在我打开一个 cmd 窗口并输入代码时

pyinstaller--onefile --windowed Homework.py

我在 cmd 中收到错误提示

'pyinstaller--onefile' is not recognized as an internal or external command,
operable program or batch file.

【问题讨论】:

  • 在 pyinstaller 和 --onefile 之间不需要空格吗?
  • 我试过了,还是不行

标签: python user-interface pip pyinstaller pywin32


【解决方案1】:

使用该命令直接调用模块:

python -m PyInstaller --onefile --windowed --name="fileName" Homework.py

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-09-22
    • 2017-08-15
    • 2018-10-15
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多