Pyinstaller 在内部或外部命令中未被识别
Pyinstaller 在内部或外部命令中未被识别
我尝试在cmd中使用pyinstaller
,但是收到错误信息:
C:\Users\username>pyinstaller 'pyinstaller' 不被识别为内部或外部命令,可执行程序或批处理文件。 C:\Users\username>
当我在python的Scripts文件夹中使用这个命令时,它可以正常工作:
C:\Users\username\AppData\Local\Programs\Python\Python36-32\Scripts>pyinstaller usage: pyinstaller [-h] [-v] [-D] [-F] [--specpath DIR] [-n NAME] [--add-data] [--add-binary ] [-p DIR] [--hidden-import MODULENAME] [--additional-hooks-dir HOOKSPATH] [--runtime-hook RUNTIME_HOOKS] [--exclude-module EXCLUDES] [--key KEY] [-d] [-s] [--noupx] [-c] [-w] [-i ] [--version-file FILE] [-m ] [-r RESOURCE] [--uac-admin] [--uac-uiaccess] [--win-private-assemblies] [--win-no-prefer-redirects] [--osx-bundle-identifier BUNDLE_IDENTIFIER] [--distpath DIR] [--workpath WORKPATH] [-y] [--upx-dir UPX_DIR] [-a] [--clean] [--log-level LEVEL] [--upx UPX] scriptname [scriptname ...] pyinstaller: error: the following arguments are required: scriptname C:\Users\username\AppData\Local\Programs\Python\Python36-32\Scripts>
如何解决这个问题?