Python Pyinstaller cmd错误

Python Pyinstaller cmd错误,python,user-interface,pip,pyinstaller,pywin32,Python,User Interface,Pip,Pyinstaller,Pywin32,我下载了pyinstaller和pywin32,并将它们都放在Python32-35文件夹中 然后,我将一份我编写的gui程序(homography.py)的副本放入位于上一个文件夹中的Scripts文件夹中 现在,当我打开cmd窗口并输入代码时 pyinstaller--onefile --windowed Homework.py 我收到cmd中的错误消息 'pyinstaller--onefile' is not recognized as an internal or external

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

然后,我将一份我编写的gui程序(homography.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.

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

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

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

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

你不需要在pyinstaller和--onefile之间留一个空格吗?我试过了,但仍然不起作用。你不需要在pyinstaller和--onefile之间留一个空格吗?我试过了,但仍然不起作用