Import error when trying to import python module from other folder
Import error when trying to import python module from other folder Question: This is my project structure: /my_project /first_folder first.py /second_folder second.py second.py def hello(): print(‘hello’) first.py from ..second_folder import second second.hello() when i run first.py i get the following error: ImportError: attempted relative import with no known parent package How can I avoid this …