pycharm在运行终端得时候出现下图问题:
大致意思就是:
无法打开终端
无法在 D:\代码\python\爬虫学习 中启动 [powershell.exe]
Error running process: CreateProcess failed. Code 2
运行进程时出错:创建进程失败。代码2
解决方法是:打开pycharm-->文件-->设置-->工具-->终端
然后把下图所指路径修改为电脑系统 powershell.exe 文件的全路径
powershell.exe路径为:C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
然后重启就可以了