PyCharm error: ‘No Module’ when trying to import own module (python script)

If your own module is in the same path, you need mark the path as Sources Root. In the project explorer, right-click on the directory that you want import. Then select Mark Directory As and select Sources Root.

Leave a Comment