Pyinstaller cmd错误

时间:2016-02-27 21:04:11

标签: python user-interface pip pyinstaller pywin32

我下载了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.

1 个答案:

答案 0 :(得分:3)

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

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