2024版的idea或pycharm打开terminal时会发生如下问题:
Cannot open Windows PowerShell
Failed to start [C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe,
或
Cannot open Command Prompt
Failed to start [C:\Windows\system32\cmd.exe]
需要点击标题栏的Help>Edit Custom VM Options…
在后面追加
-Dcom.pty4j.windows.disable.bundled.conpty=true
重启idea或pycharm生效