【问题标题】:The terminal process failed to launch: Path to shell executable "C:\Windows\System32" is not a file of a symlink终端进程无法启动:shell 可执行文件“C:\Windows\System32”的路径不是符号链接的文件
【发布时间】:2020-09-22 09:42:11
【问题描述】:

我真的不知道该怎么办。 有人可以帮忙吗? 它在 vscode 上

【问题讨论】:

  • 进展如何?如果有任何进展,请告诉我们。
  • 适用于使用 Ubuntu 时遇到类似问题的人。 VSCode Ubuntu
  • 对于在 Ubuntu 上遇到类似问题的人。 VSCode Ubuntu

标签: python visual-studio-code


【解决方案1】:

这是因为它找不到.exe可执行文件,你可以通过以下设置修复它:

  1. 如果您使用cmd.exe 执行脚本,请使用:

"terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe"

  1. 如果您使用PowerShell.exe 执行脚本,请使用:
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe"

更多内容,您也可以参考:Terminal.integrated.shell.windows

【讨论】:

    【解决方案2】:

    只需在 Visual Studio 代码中从您的工作区中删除已删除的文件(例如清除打开文件/文件夹的历史记录)。它对我有用

    【讨论】:

      猜你喜欢
      • 2020-11-15
      • 1970-01-01
      • 1970-01-01
      • 2022-07-01
      • 2016-02-29
      • 2021-05-21
      • 1970-01-01
      • 1970-01-01
      • 2021-05-25
      相关资源
      最近更新 更多