jetbrain的ide 2024.1更新的版本后出现打开控制台后出现以下报错。
解决方法
1.切换powellShell和cmd
setting => tools => terminal => shell path 切换成cmd
2.检查电脑环境变量
- 此电脑-属性-高级系统设置-环境变量-path检查环境
-
C:\Windows\system32 C:\Windows C:\Windows\System32\Wbem C:\Windows\System32\WindowsPowerShell\v1.0\
3.重点! 不知道是不是24.1更新后的原因,需要
去禁用一下 terminal.use.conpty.on.windows,但是禁用后是否对其他功能有影响需要自行探索
- help-find Action-registry- 禁用terminal.use.conpty.on.windows
依旧有问题可参考-链接windows - PyCharm "Can't Open Local Terminal" "Failed to start cmd.exe"? - Stack Overflow