Closed ShellRedia closed 1 year ago
这个是因为 python
这个命令解析到了 C:\Users\xxx\AppData\Local\Microsoft\WindowsApps\python3.exe
,但这个只是 Windows 商店的占位符,会跳转到 windows 商店的 python 安装页面,并不是实际的 python 程序。
解决方式有几种:
leetgo.yaml
中设置 code.python.executable
为实际的 python.exe
路径。一些相关链接:
问题解决了,感谢作者
Gaomany @.***
------------------ 原始邮件 ------------------ 发件人: "j178/leetgo" @.>; 发送时间: 2023年9月25日(星期一) 中午11:59 @.>; @.**@.>; 主题: Re: [j178/leetgo] [Bug] contest questions generation (Issue #226)
这个是因为 python 这个命令解析到了 C:\Users\xxx\AppData\Local\Microsoft\WindowsApps\python3.exe,但这个只是 Windows 商店的占位符,会跳转到 windows 商店的 python 安装页面,并不是实际的 python 程序。
解决方式有几种:
自行安装 Python (通过 python installer, scoop, winget 等方式),然后在 leetgo.yaml 中设置 code.python.executable 为实际的 python.exe 路径。
关掉 python.exe 和 python3.exe 的应用执行别名,参考 https://www.jianshu.com/p/a5c5148b7434
一些相关链接:
https://blog.csdn.net/XiaohuihuiHuiYi/article/details/132223029
https://www.jianshu.com/p/a5c5148b7434
https://vocus.cc/article/64030b66fd89780001dfced7
AUTOMATIC1111/stable-diffusion-webui#1423
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
leetgo debug
PS C:\Users\xxx\Desktop\LeetCodeTemplate-Python\python> leetgo contest b100/ ● checking python version cmd="C:\Users\xxx\AppData\Local\Microsoft\WindowsApps\python3.exe --version" × failed to generate question=distribute-money-to-maximum-children err="exit status 9009" ● checking python version cmd="C:\Users\xxx\AppData\Local\Microsoft\WindowsApps\python3.exe --version" × failed to generate question=maximize-greatness-of-an-array err="exit status 9009" ● checking python version cmd="C:\Users\xxx\AppData\Local\Microsoft\WindowsApps\python3.exe --version" × failed to generate question=find-score-of-an-array-after-marking-all-elements err="exit status 9009" ● checking python version cmd="C:\Users\xxx\AppData\Local\Microsoft\WindowsApps\python3.exe --version" × failed to generate question=minimum-time-to-repair-cars err="exit status 9009" × no question generated
Debug log
Description
I tried LeetGo and found that the "pick" command works successfully for generating individual questions, but I encountered an error when attempting to use the "contest" command to generate questions for a weekly contest. 我尝试了leetgo,发现用pick命令生成单个题目的命令可以成功,但是使用contest 命令生成周赛题目的时候会报错。