Avatar ·

Importerror: Attempted Relative Import with No Known Parent Package Python

📁 python, ошибка, проект

I have such a project structure

  --- Package1/code.py --- paccage2/ext.py  

how to import me variable from Ext.PY to Code.Py?

from ext import var - it does not work, says that there is no module Ext

from ..Paccakeage2.ext Import Var is also not The error is being issued: Importerror: Attempted Relative Import with No Known Parent Package