我能够安装pyinstaller,当我输入pyinstaller --onefile --windowed frontend.py时,我得到了这个错误:
pyinstaller : The term 'pyinstaller' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
included, verify that the path is correct and try again.
At line:1 char:1
+ pyinstaller --onefile --windowed frontend.py
+ ~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (pyinstaller:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException请帮我修复这个错误。谢谢
发布于 2020-11-08 14:42:26
pyinstaller应该在PATH环境变量中。
pyinstaller.exe的完整路径(它应该在您的Python安装的Scripts目录中),然后复制完整路径。然后打开命令提示符(以Administrator)用户身份)
setx PATH "%PATH%;PYINSTALLER_PATH",其中PYINSTALLER_PATH是您复制的pyinstaller的完整路径。发布于 2021-01-30 23:34:35
这意味着PyInstaller不安装try:[] -打开控制台/外壳/终端并在命令下写入
pip安装pyinstaller
https://stackoverflow.com/questions/64735474
复制相似问题