Modulenotfounderror After Packaging With Pip
Why would I receive a ModuleNotFoundError: No module named 'helpers' when I execute the command prompt script after running pip3 install . from my package's root directory? The loc
Solution 1:
In Python 3 all imports are absolute. Use full path to import a module from a package:
from mypackage import helpers as h
To perform relative import do it explicitly:
from . import helpers as h
Post a Comment for "Modulenotfounderror After Packaging With Pip"