Skip to content

[Solved] PyCharm: Cannot start process, the working directory ‘xxx’ does not exist


Introduction

During executing the program by PyCharm, sometimes maybe have the following error happened:

Cannot start process, the working directory 'xxx' does not exist

That is because you had been execute the program by PyCharm, but you readjusted the file path. PyCharm always save the configure of the file path.

So if we want to solve this error is easy, just need to change the file path to correct.


Solution

Today when I want to run the main.py file and I get this error. The solution is select Run -> Edit Configurations, and change the path of error file.

After correcting the required path of the file, it can be successfully executed.

Leave a Reply