术语' auto-py-to-exe'将.py文件转换为.exe时未识别错误

发布于 2025-01-25 06:50:25 字数 567 浏览 4 评论 0原文

完成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

After I finish my python project, I tried to convert it to .exe file, so I use python version 3.10. I already installed the auto-py-to-exe app from the cmd but when I want to open it I get this error:

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

今天小雨转甜 2025-02-01 06:50:25

检查您是否在路径中添加了Python和Python脚本。

  1. 搜索“编辑系统环境变量”(Windows搜索),然后单击第一个结果
  2. 单击“系统变量”部分中打开的窗口中的“环境变量...”,
  3. 双击
  4. 打开的窗口中的 “路径”变量单击那里的“新”按钮,然后键入c:\ python310 \。创建另一个条目和类型c:\ python310 \ scripts \
  5. 单击“确定”

现在打开命令提示符(确保不打开终端),然后输入auto-py-to-to-exeautopytoexe,两者都应该工作。

Check if you added Python and Python Scripts to your PATH.

  1. Search for "Edit the system environment variables" (Windows Search) and click the first result
  2. Click "Environment Variables..." in the window that opened
  3. In the "System variables" section double click the "Path" variable
  4. In the window that opened click the "New" button and type C:\Python310\ there. Create another entry and type C:\Python310\Scripts\ there.
  5. Click "OK"

Now open the command prompt (make sure to not open the terminal) and type in auto-py-to-exe or autopytoexe, both should work.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文