术语' auto-py-to-exe'将.py文件转换为.exe时未识别错误
完成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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
检查您是否在路径中添加了Python和Python脚本。
c:\ python310 \
。创建另一个条目和类型c:\ python310 \ scripts \
。现在打开命令提示符(确保不打开终端),然后输入
auto-py-to-to-exe
或autopytoexe
,两者都应该工作。Check if you added Python and Python Scripts to your PATH.
C:\Python310\
there. Create another entry and typeC:\Python310\Scripts\
there.Now open the command prompt (make sure to not open the terminal) and type in
auto-py-to-exe
orautopytoexe
, both should work.