我在安装时将Python添加到路径中,但收到警告“ Python”未安装。
I already installed Python. I had added it when installed. I had checked it, too.(pic2&3, my python version was 3.10.5150.1013)
Image:
pic1
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用
Ctrl+Shift+P
打开命令调色板并搜索python:选择解释器
(或单击右下角的“选择解释器”)。如果面板显示解释器,请选择可用的解释器。如果面板没有解释器选项。请选择第一个项目
输入解释器路径
。然后将完整的路径粘贴到您的
python.exe
(或通过选择查找
进入Explorer,然后选择您的python.exe < /代码>)。
Use
ctrl+shift+p
to open the command palette and search forPython:Select Interpreter
(or click select interpreter in the lower right corner).If the panel shows an interpreter, select the available interpreter. If the panel doesn't have an interpreter option. Please select the first item
Enter interpreter path
.Then paste the full path to your
python.exe
(or go to explorer by selectingFind
and select yourpython.exe
).发生这种情况是因为python不在%路径%环境变量中,在python安装中,它询问您是否想在%路径%变量中添加python,您可能已经错过了它,您可以手动添加python在%path%变量更多信息在这里: https://learn.microsoft.com/en-us/previous-versions/office/develice/developer/sharepoint-2010/ee537574(v = Offical.14)
This happens because Python is not in %PATH% environment variable, in the Python installation, it asks you if you'd like to add Python in the %PATH% variable, you may have missed it, you can manually add Python executable in the %PATH% variable more information here: https://learn.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/ee537574(v=office.14)