2016-02-27 64 views
0

我下載pyinstaller和pywin32並放置無論是在Python32-35文件夾Pyinstaller CMD錯誤

我然後把GUI程序的副本(Homework.py)我編寫成位於前面的腳本文件夾文件夾

現在我當我打開一個cmd窗口,然後輸入代碼

pyinstaller--onefile --windowed Homework.py 

我收到在cmd中的錯誤說

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

你不需要pyinstaller和--onefile之間的空間? – idjaw

+0

我試過了,它仍然無法正常工作 – OntologicalSin

回答

3

使用這個命令來直接調用模塊:

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