Content License: Creative Commons Attribution 4.0 International (CC-BY-4.0)Credit must be given to the creatorDownloadsDownloadRelative Import in PythonBen DuNovember 15, 2026Call the package outside itAdd .. into sys.path.import sys sys.path.append("..") References¶beyond top level package error in relative importHow to do relative imports in Python?