pycharm使用Python Console报错:Cannot start process, the working directory '' does not exist

我用的是mac版本的pycharm,出现上述问题后,进行如下操作:

1.打开Preferences

pycharm使用Python Console报错:Cannot start process, the working directory '' does not exist

2.设置Python Consol的environment

pycharm使用Python Console报错:Cannot start process, the working directory '' does not exist

在project一项里,选择一个已创建的项目,确定之后就可以了