首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >无法识别Pyinstaller

无法识别Pyinstaller
EN

Stack Overflow用户
提问于 2020-11-08 14:40:10
回答 2查看 4.2K关注 0票数 1

我能够安装pyinstaller,当我输入pyinstaller --onefile --windowed frontend.py时,我得到了这个错误:

代码语言:javascript
复制
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

请帮我修复这个错误。谢谢

EN

回答 2

Stack Overflow用户

发布于 2020-11-08 14:42:26

pyinstaller应该在PATH环境变量中。

  • 首先找到pyinstaller.exe的完整路径(它应该在您的Python安装的Scripts目录中),然后复制完整路径。

然后打开命令提示符(以Administrator)用户身份)

  • 然后运行命令setx PATH "%PATH%;PYINSTALLER_PATH",其中PYINSTALLER_PATH是您复制的pyinstaller的完整路径。

  • ,然后您需要重新启动命令提示符,然后再次运行该命令。
票数 1
EN

Stack Overflow用户

发布于 2021-01-30 23:34:35

这意味着PyInstaller不安装try:[] -打开控制台/外壳/终端并在命令下写入

pip安装pyinstaller

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/64735474

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档