description
Source roots contain the actual source files and resources. PyCharm uses the source roots as the starting point for resolving imports
solution
- Right click on the directory which you want to set as root of your imports
- Click on
Mark Directory asin the bottom of the dropdown - Click on
Source roots - Close the Pycharm and open it again