【问题标题】:The term 'auto-py-to-exe' is not recognized error while converting the .py file to .exe将 .py 文件转换为 .exe 时,无法识别术语 \'auto-py-to-exe\'
【发布时间】:2023-01-04 12:13:52
【问题描述】:

完成我的 python 项目后,我试图将它转换为 .exe 文件,所以我使用 python 版本 3.10。我已经从 cmd 安装了 auto-py-to-exe 应用程序,但是当我想打开它时,出现此错误:

auto-py-to-exe : The term 'auto-py-to-exe' 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
+ auto-py-to-exe
+ ~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (auto-py-to-exe:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

【问题讨论】:

    标签: python cmd exe auto-py-to-exe


    【解决方案1】:

    检查您是否将 Python 和 Python 脚本添加到您的 PATH 中。

    1. 搜索“编辑系统环境变量”(Windows 搜索)并单击第一个结果
    2. 在打开的窗口中单击“环境变量...”
    3. 在“系统变量”部分双击“路径”变量
    4. 在打开的窗口中单击“新建”按钮并在其中键入C:Python310。创建另一个条目并在其中键入 C:Python310Scripts
    5. 单击“确定”

      现在打开命令提示符(确保不要打开终端)并输入auto-py-to-exeautopytoexe,两者都应该有效。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-10-24
      • 1970-01-01
      • 2021-10-03
      • 2021-11-04
      • 2021-06-05
      • 1970-01-01
      相关资源
      最近更新 更多