Some help please. I’m trying to install my package locally. That is –
pip install .. However, when reading may package’s
__init__.py file, it raises an
ImportError for either absolute importations (
from <package> import module) and relative ones (
from . import module).
The thing is, that when I install the file in "developement-mode"/"editable" (
pip install --editable .), it works smoothly. Does anyone know why this happens, and how can I fix this behavior?
Source: Python Questions