![python - How to fix "Attempted relative import in non-package" even with __init__.py - Stack Overflow python - How to fix "Attempted relative import in non-package" even with __init__.py - Stack Overflow](https://i.stack.imgur.com/O8dKL.png)
python - How to fix "Attempted relative import in non-package" even with __init__.py - Stack Overflow
![Unresolved import when opening a subdirectory of an import root as the workspace root · Issue #1060 · microsoft/python-language-server · GitHub Unresolved import when opening a subdirectory of an import root as the workspace root · Issue #1060 · microsoft/python-language-server · GitHub](https://user-images.githubusercontent.com/1378483/61176956-4d473580-a5ca-11e9-9deb-3bb5b1c77d36.gif)
Unresolved import when opening a subdirectory of an import root as the workspace root · Issue #1060 · microsoft/python-language-server · GitHub
![visual studio code - How can I import a python module from a relative directory in VSCode? - Stack Overflow visual studio code - How can I import a python module from a relative directory in VSCode? - Stack Overflow](https://i.stack.imgur.com/AI5cm.png)
visual studio code - How can I import a python module from a relative directory in VSCode? - Stack Overflow
![Understanding Python imports, __init__.py and pythonpath — once and for all | by Dr. Varshita Sher | Towards Data Science Understanding Python imports, __init__.py and pythonpath — once and for all | by Dr. Varshita Sher | Towards Data Science](https://miro.medium.com/v2/resize:fit:1178/1*h2F5YX0Gy7bQYm6TfmhWMw.png)