시스템 오류: 상위 모듈 '이(가) 로드되지 않았습니다. 상대 가져오기를 수행할 수 없습니다. 이 질문에는 이미 다음과 같은 답이 있습니다. __init_.py로도 "비패키지에서 상대 가져오기 시도"를 수정하는 방법 (21개 답변) 마감됨6년 전에. 다음 디렉터리가 있습니다. myProgram └── app ├── __init__.py ├── main.py └── mymodule.py 나의 모듈py: class myclass(object): def __init__(self): pass def myfunc(self): print("Hello!") main.py : from .mymodule import myclass print("Test") testclass = myclass() testclass.myfu..