# app2.py
from helloworld.hello import say_hello
print(say_hello())
After pip editable mode installation,
(venv) C:\Users\TC\temp\editable\dir2>pip install -e C:\Users\TC\temp\editable\dir1
the following error appears in app2.py.
Import "helloworld.hello" could not be resolvedPylance(reportMissingImports)
However, the app2.py runs fine. If pip install without editable mode, the error message disappears and IntelliSense works.
I have tried many ways to get the IntelliSense to work under the editable mode without success.
Therefore I conclude for some unknown reason, helloworld package is not installed under the editable mode. Instead the following folders are installed in venv\lib\site-packages
2024-10-17 11:24 PM 91 __editable__.helloworld-0.1.0.pth
2024-10-17 11:24 PM 3,436 __editable___helloworld_0_1_0_finder.py
Since no helloworld package folder exists, Pylance therefore cannot resolve the import.
If any of you know how to get the IntelliSense working under the editable mode, please let me know.