Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
最快的解决方案是将VS代码终端从PowerShell切换到CMD。
在下拉下,选择CMD。
只需在Powershell中设置路径即可。
打开PowerShell并将其作为管理员运行。运行此代码:(复制,粘贴从这里)“
[Environment]::SetEnvironmentVariable("Path", "$env:Path;C:\Program Files\Python35-32")“
它必须解决了错误。
要确认,请运行此代码:
“python --version”
Fastest solution is to switch the vs code terminal from Powershell to Cmd.
On the drop-down there choose Cmd.
Just set the path in the powershell.
Open Powershell and run it as an admin.Run this code: (copy, paste from here)“
It must have resolved the error.
To confirm, run this code:
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(1)
简短答案:
最快的解决方案是将VS代码终端从PowerShell切换到CMD。
在下拉下,选择CMD。
长答案:
只需在Powershell中设置路径即可。
打开PowerShell并将其作为管理员运行。
运行此代码:(复制,粘贴从这里)
“
注意:在这里,在路径中,添加您在系统中安装Python的路径,在我的情况下,它是“ C:\ Program Files \ Python35-32”。
它必须解决了错误。
要确认,请运行此代码:
Short Answer:
Fastest solution is to switch the vs code terminal from Powershell to Cmd.
On the drop-down there choose Cmd.
Long Answer:
Just set the path in the powershell.
Open Powershell and run it as an admin.
Run this code: (copy, paste from here)
“
Note: Here, in Path, add the path where you’ve installed Python in your system, here in my case it is “C:\Program Files\Python35-32”.
It must have resolved the error.
To confirm, run this code: