title: How to resolve Module Not Found
body: <p>Hello guys i am trying to create a simple project with flask and it is my first time using <strong>init</strong>.py file. The tree structure is like this</p>
  <pre><code>FlaskApi/venv
  ├── lib64 -&gt; lib
  ├── flaskapi
  │   ├── generate_dummy_data.py
  │   └── models.py
  |   └── routes.py
  │   └── __init__.py
      └── linked_list.py
  │   └── sqlitedb.db
  ├── pyvenv.cfg
  └── run.py
  </code></pre>
  <p>My generate_dummy_data.py file  import is like this:</p>
  <pre><code>from flaskapi import db
  from flaskapi.models import User, BlogPost
  </code></pre>
  <p>My <strong>init</strong>.py file is like this:</p>
  <pre><code>from flask import Flask
  
  from sqlite3 import Connection as SQLite3Connection
  from sqlalchemy import event
  from sqlalchemy.engine import Engine
  from flask_sqlalchemy import SQLAlchemy
  
  
  app = Flask(__name__)
  
  app.config[&quot;SQLALCHEMY_DATABASE_URI&quot;] = &quot;sqlite:///sqlitedb.db&quot;
  app.config[&quot;SQLALCHEMY_TRACK_MODIFICATIONS&quot;] = 0
  db = SQLAlchemy(app)
  </code></pre>
  <p>My models.py file is like this:</p>
  <pre><code>from flaskapi import db
  from datetime import datetime
  </code></pre>
  <p>When i try to run the file generate_dummy_data.file i get this error:</p>
  <pre><code>ModuleNotFoundError: No module named 'flaskapi'
  </code></pre>
  <p>Can someone pls explain to me why this is happening? Thank you guys for your time</p>