I saw that this question was asked before (at least twice), but so far I have not found a solution, so I will ask the question again with more detailed information.
Problem
When I run my main python file, PyCharm keeps telling me Cannot start process, the working directory /home/myname/PyCharmProjects/MyProjectName/mypackage does not exist .
When did this error happen?
After I created the mypackage package for testing purposes, moved the files to it (including my main file) and subsequently moved the files to the root folder.
After that, the mypackage package was empty, but PyCharm still believed that the main file ( Main.py ) was in that package. I could still run the program until I removed the empty package, but path errors occurred. After removing the package, I could not start it.
Additional Information
- I can still run other files that were previously in
mypackage and are now in my root directory. - I can create and run new files in the root directory
source share