Python3 error “ImportError: No module named” have __init__.py
You said that you're running python application.py
, which suggests that your working directory is src
. To be able to import modules under src.*
(without playing with PYTHONPATH) you should run Python from the myproject
directory instead.
Consider either moving application.py
to myproject
or running it with python src/application.py
.